plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

How to override box chart hover template, trace name is repeating in each property on hover.

Open patilabhay679 opened this issue 3 years ago • 0 comments

import plotly.graph_objects as go
from plotly.data import iris

# Load the dataset
df = iris()

fig = go.Figure()

fig.add_box(x =df['sepal_length'],name='sepal_length')
fig.add_box(x =df['sepal_width'],name='sepal_width')
fig.add_box(x=df['petal_length'],name='petal_length')
fig.add_box(x=df['petal_width'],name='petal_width')

fig.update_layout(template ='gridon')
fig.show()

image

How to Remove the Trace name i.e. "petal width", from hover of each property of box plot? having legend intact.

patilabhay679 avatar Aug 08 '22 10:08 patilabhay679