I would like to be able to format the values that are displayed in hoverinfo for pie chart. Here is a codepen for context: http://codepen.io/anon/pen/BQLoOO.
How can I go about formatting each of the value in allValues so it can show up as 1.8k, 600, 3.6k if they are integers or show up as 00:30:00, 00:10:00, 01:00:00 if they are seconds?
Adding an answer now (years later) since this was the main google result that popped up for me, trying to find the answer to this question. (I think this functionality was introduced a couple years ago for all plot types.)
That’s the general answer. I’ll pass on the specifics of this question (“k” as thousands, etc). Note the <extra></extra> prevents the trace name from appearing in a side box.