Hi work with plotly Go and plotly express.
I need legendgroups for my charts to update all similar if i click an value in the legend. So my current knowledge says that i cant use plotly express (correct me if I am wrong). So I have to use plotly GO, but with go there is no hoverdata? Sad that both together have all what I need.
I have an issue. I need Hoverdata on for e.g., but this doesnt work. I can use hoverdata with plotly express, but plotly express doesnt accept Legendgroup
*How to set Hover Data here?*
figw.append_trace(
go.Scatter(
x=data["Time"],
y=data["Sun"],
name=str(data["Date"].unique())[2:-2],
legendgroup='group'+str(i),
showlegend=False,
marker=dict(color=d[j]),
hovertext=[data["Time"],data["Sun"],data["Temperature"],data["Consumption"],data["Pressure"]],
*How to set Legendgroup here?*
fig1bar = px.bar(dfbar1, x='Date',
y='Consumption',
hover_data=["Date", "Consumption"],
labels={'Consumption':'Energy'},
color='Date',
text="Date",
title = "Title",
)