How to remove legend name from hover info, but keep custom hover template?

Hi there

I have a custom hover template on my chart (content in the white box in the image below) but how do I get rid of the IEXG label? This is the legend label.

image

Relevant bits from my trace:

showlegend=True,
customdata=temp_df.to_numpy(),
hovertemplate =
'<br><b>Symbol</b>: {}'.format(symbol)+
'<br><b>Week</b>: {}'.format(week_start)+
'<br><b>Venue</b>: %{customdata[4]}'+
'<br><b>Qty</b>: %{customdata[2]}'+
'<br><b>Price</b>: $%{customdata[3]}'

TIA

This is very easy to achieve, simply add <extra></extra> to the hovertemplate, see:Hover Text And Formatting

1 Like