How to add legend of a graph in hover template?

i am doing a graph with Plotly library and I would like to add the name of the legend inside the hovertemplate. How can I do ?

data = [go.Bar(name=col,
x=aum_annuel_classe.index.year,
y=aum_annuel_classe[col],
xhoverformat=“%Y”,
xperiodalignment=“middle”,
hovertemplate = ‘
’.join([
‘Année: %{x}’,
‘AuM: %{y:,.2s}€’,
‘’
]
)
)
for col in aum_annuel_classe.columns]
fig = go.Figure(data)
fig.update_layout(barmode=‘stack’,
legend=dict(yanchor=“top”,
y=0.99,
xanchor=“left”,
x=0.01
),
)
fig.update_xaxes(ticklabelmode=“period”,
tickformat=“%Y”
)

Thx