Pie Chart On Hover


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,


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