Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Pie Chart On Hover

Hi

On Hover of the data point i want to round the decimal point to 2 digit for the percentage. Currently for each data point its differing . Some data some 1 decimal some shows 2 and some are showing 3 its not consistent.

Can you please help me on this,

Regards,
Nithya

The only way to do this at the moment would be a add fully-custom hover text (using the text attribute) to your pie chart and then set the trace’s hovermode to 'text'.

Here’s an example: http://codepen.io/etpinard/pen/GoVeLv

Thanks Its works for me