# add into hovertemplate
# e.g. show both value and percentage in hover info without trace name
fig = go.Figure()
fig.add_trace(
go.Bar(
x=df["steps"],
y=df["reads_percentage"],
name="bar",
customdata=df["reads"],
hovertemplate="%{y:.2f}% %{customdata:.0f} reads ",
)
)