✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Limiting Decimel places in Box Plot

Hello,

I have created a Dash application using the codes from Demo application and added a box plot. The problem I am having is with the decimal places displayed on Hovering a box. I want to limit it to two. Already tried the suggestions mentioned on https://plotly.com/python/hover-text-and-formatting/ but it’s not working. hover_data gives an error that it doesn’t exist. On another webpage, I have used JS plotly for box plots and used the hover formatting options to limit the decimal places mentioned on https://plotly.com/javascript/hover-text-and-formatting/#rounding-x-and-y-hover-values and they worked perfectly. However, I am trying to sort it out in Dash but nothing is helping so far.

Any suggestions or help would be much appreciated. Thanks :slightly_smiling_face: