trace = go.Histogram(
x=df[âBusiness fieldâ].sort_values(),
opacity=0.80,
marker=dict(color=[âCrimsonâ,âChartreuseâ,
âCadetBlueâ,
âBurlyWoodâ,
âDeepSkyBlueâ,
âGoldâ,
âLightPinkâ,âMediumAquaMarineâ,
âOrchidâ,âSandyBrownâ,âTealâ],line=dict(color=â#000000â, width=2.5)))
data = [trace]
layout = go.Layout(
title=âDuration of contract based on different programâ,
xaxis=dict(title=âDuration of contractâ),
yaxis=dict( title=âCountâ),
template = âplotly_whiteâ,
font_size=15,
)
fig = go.Figure(data=data, layout=layout)
iplot(fig)
Just entered this plotly world, have a few questions about this package, first question would be how to order them by acending/descending please, itâs really easy to do with seaborn, but kind of struggling by using plotly though.
thanks a lot guys,
best regards,