We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initially reported on the Plotly forum.
Using make_subplots means that the hoversubplots=“axis” will not work correctly.
hoversubplots=“axis”
Sample code that produces the error: Codepen.
import plotly.graph_objects as go from plotly import data from plotly.subplots import make_subplots df = data.stocks() fig = make_subplots(rows=3, cols=1, shared_xaxes=True, vertical_spacing=0.03) layout = dict( hoversubplots="axis", title="Stock Price Changes", hovermode="x", grid=dict(rows=3, columns=1), ) fig.add_trace(go.Scatter(x=df["date"], y=df["AAPL"], name="Apple"), row=1, col=1) fig.add_trace(go.Scatter(x=df["date"], y=df["GOOG"], name="Google"), row=2, col=1) fig.add_trace(go.Scatter(x=df["date"], y=df["AMZN"], name="Amazon"), row=3, col=1) fig.update_layout(layout) fig.show()
Expected behavior should be the same as when using the Plotly docs hover on subplots example, where hover labels appear for all charts: Codepen.
The text was updated successfully, but these errors were encountered:
When will this be addressed?
Sorry, something went wrong.
hoversubplots
matches
I have the same issues even with the latest Plotly 5.23.0
+1 Many folks prefer not to work with the 'go' API because it's less intuitive. A fix for make_subplots would be appreciated 🙏
No branches or pull requests
Initially reported on the Plotly forum.
Using make_subplots means that the
hoversubplots=“axis”
will not work correctly.Sample code that produces the error:
Codepen.
Expected behavior should be the same as when using the Plotly docs hover on subplots example, where hover labels appear for all charts:
![image](https://private-user-images.githubusercontent.com/32049495/328214185-9f262fd6-5a78-4523-8aa9-678cb535ca4c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU0NjM5OTgsIm5iZiI6MTcyNTQ2MzY5OCwicGF0aCI6Ii8zMjA0OTQ5NS8zMjgyMTQxODUtOWYyNjJmZDYtNWE3OC00NTIzLThhYTktNjc4Y2I1MzVjYTRjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA0VDE1MjgxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdkNmMyMThhYzE5OWIxZDU4NGI4MmZkN2NiZWNiNWE1ZWFjOTQ1YmQyYWM3NTA0YjFhZDQ5YTE1M2Q2OTIzNDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.cQLXEnV2ziwPjhSq6zIExhuXHB9L_zMrTt5k4_UIjS4)
Codepen.
The text was updated successfully, but these errors were encountered: