Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

histogram for categorical data with plotly

import plotly.express as px

df = px.data.tips()
fig = px.histogram(df, x="day").update_xaxes(categoryorder='total ascending')
fig.show()
Source by plotly.com #
 
PREVIOUS NEXT
Tagged: #histogram #categorical #data #plotly
ADD COMMENT
Topic
Name
1+1 =