Hi, I have the below figure:
colors = ['lightslategray'] * 6
colors[3] = 'crimson'
genres=['Role-Playing', 'Action', 'Platform', 'Misc', 'Misc', 'Action']
fig = go.Figure(data=[go.Bar(x=generation_sales['Generation'],
y=generation_sales['Global_Sales'],
marker_color=colors,
hovertemplate='Years: %{text} <br>Total Sales:%{y} <br>Popular Genre: %{label}',
text=['1965-1979', '1980-1985', '1986-1994', '1995-2012', '2013-'],
labels=['Role-Playing', 'Action', 'Platform', 'Misc', 'Misc', 'Action'],
name='')])
fig.update_layout(title_text='Total Sales By Generations', template=None)
And I keep getting the error that:
ValueError: Invalid property specified for object of type plotly.graph_objs.Bar: 'labels'
Is there any way that I can use more than one customized hover data?