You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@nicolaskruchten, thank you for the examples (https://github.com/plotly/plotly.py/issues/2876), I have made small modification to the same code added animation_frame, before the play button is clicked yaxis and hovertext has no "sum of" text but once played we can see hovertext adds again sum of.
Sorry I am new to this not sure if I am doing something stupid
Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for a while, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Alternatively, if it's a request for tech support, please post in our community forum. Thank you - @gvwilson
Sorry I am new to this not sure if I am doing something stupid
import plotly.express as px
import pandas as pd
import io
data = '''
time name value
0 P1 2
10 P1 4
20 P1 6
30 P1 3
0 P2 1
10 P2 4
20 P2 3
30 P2 2
'''
df = pd.read_csv(io.StringIO(data), delim_whitespace=True)
fig = px.histogram(df, x="name", y="value",color='name',animation_frame="time",range_y=[0,df['value'].max()],color_discrete_sequence=px.colors.qualitative.T10)
fig.for_each_trace(lambda t: t.update(hovertemplate=t.hovertemplate.replace("sum of", "")))
fig.for_each_yaxis(lambda a: a.update(title_text=a.title.text.replace("sum of", "")))
fig.show()
Originally posted by @hrani in #2876 (comment)
The text was updated successfully, but these errors were encountered: