Hi! I have been struggling several hours with the histograms plot. Iβm trying to build a histogram with histnorm='percent'
but that in the hoverinfo (and also printed as text if possible) shows the count value. Is this even possible?
import plotly.express as px
df = px.data.tips()
fig = px.histogram(df, x="total_bill", histnorm='percent')
fig.update_traces(hovertemplate='count=%{count} <br>percent = %{y:.2f}<extra>%{x}</extra>')
fig.show()
I tried all kind of things. I just leave as an example one that obviously didnβt work because %{count} doesnβt print the actual count, it just renders as %{count}.
Any help will be great! Thanks!