I’m trying to create an area chart with customized hovertext for each point. That is working, but the plot has the same text showing on each point, cluttering the presentation.
Code is as follows: (hovertext is a dataframe field showing exactly what should be shown)
fig = px.area(df_pbp, x=x_col, y=y_col_norm,
text="hovertext",
#hover_data=["hovertext"],
color_discrete_sequence=["blue"],
title="Win probabilities throughout game"
)
fig.update_traces(hovertemplate="%{text}",
showlegend=False)
How do I hide this text in the chart but still keep in the hovertext properly? Thanks.