Using Jupyter Notebooks, I made a Scatterpolar plot with two traces on it using the following code:
import numpy as np
import plotly.graph_objs as go
th = np.arange(0, 361, 1)
r1 = np.random.randn(360)
r2 = np.random.randn(360)
fig = go.Figure()
fig.add_trace(go.Scatterpolar(r=r1, theta=th, mode='lines'))
fig.add_trace(go.Scatterpolar(r=r2, theta=th, mode='lines'))
fig.update_layout(hovermode='x')
It results in this figure, which does not show both data points when I hover over the plot. I'd like it to show both data points.
For example, when you have a line plot, it's easy to do. You just change hovermode = 'x' and you get this as shown in the hovermode text and formatting documentation.
How can I make my Scatterpolar plot show both data points when I hover over the plot? Any help would be greatly appreciated.