I'm trying to format the hover values to show only 2 decimal place for a graph. I was able to format values corresponding x and y values to 2 decimal place. My question is how to format the additional hover data to 2 decimal place?
import numpy as np
import plotly.express as px
x = 0.01001*np.arange(5)
y = 0.5*x
hover_data = [y*3]
fig = px.area(x=x, y=y, hover_data=hover_data)
fig.update_layout(
xaxis=dict(hoverformat='.2f'),
yaxis=dict(hoverformat='.2f')
)
fig.show()

