I’m experimenting some troubles with my X-axis on my px.histogram.
I’m using Python 3.6.3 and Plotly 4.8.0 .
Data are stored in a pd.DataFrame object. It has 2 columns :
- time_shift (datetime) : 15 min range
- cluster (int) : output from a clustering algorithm
Dataframe is sorted on “time_shift” column.
When i try to plot a histogram counting cluster for each time shift, i’m experimenting some issue.
fig = px.histogram(live_data, x="time_shift", color="cluster", histfunc='count')
My X axis is not sorted, however my dataframe is. I can’t figure why ?
Thanks in advance for your help