I suppose my question is very easy but canât get the answer.
i have df that looks like that:
Value Growth Monétaire
2021-01-01 60. 10. 30
2021-02-01 55. 5. 40
2021-03-01 60. 10. 30
2021-04-01 60. 10. 30
I would like to make a plotly graph with bar representing each column in a bar.
I did:
fig = go.Figure(
[go.Bar(
name=col,
x=style.index,
y=style[col],
hovertemplate='<br>'.join(['Classe : %{label}',
'Date: %{x}',
'Poids: %{y:.1f}%',
'<extra></extra>'
])
)
for col in style.columns]
)
fig.update_layout(showlegend=True,
yaxis=dict(range=[0, 100],
ticksuffix='%'),
barmode='stack'
)
fig.update_xaxes(dtick="M3",
tickformat="%b\n%Y",
)
But I would like the hover template to be for example:
classe : Value
Date: Aug 2021
Poids: 60
I canât get the âclasseâ in the hover template ie âValueâ, âgrowthâ or âMonĂ©taireâ