hover_data in PX doesn't accept df.index
See original GitHub issueIn wide-mode I can’t do this:
import plotly.express as px
df = px.data.stocks(indexed=True)
fig = px.line(df, hover_data={df.index: "|%B %d, %Y"} )
or find any other way of referring to the index.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
How to add elements to hover_data using plotly.express ...
It seems there is an issue with splitting on multiple values for hover_data / custom_data and all values are present at 0 index...
Read more >Plotly express arguments in Python
import plotly.express as px df = px.data.iris() # Use directly Columns as argument. ... In the example below the index is displayed in...
Read more >Visualization with Plotly.Express: Comprehensive guide
A detailed guide on how to create many visualizations with Plotly Express with layout styling, interactivity, animations, and many chart ...
Read more >panel.pane Package — Panel v0.14.2
This does not allow using all types of parameters. ... DataFrame(df, index=False, max_rows=25, width=400) ... An int is assumed to be px units....
Read more >Dash User Guide and Documentation
styles were optimized to look good on the web and in PDF form. ... The callback does not modify the original data, it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The syntax is
Is this what you were asking? The keys of the
hover_data
dict need to be str or numbers.this works for single index, what about multiple index?