I’m using HighCharts JS for the very first time. So far, I’m very impressed. I’m charting multiples series and using a shared tooltip. The numbers in the shared tooltip are correct, but they are not formatted as I would like. For example, I’m seeing 9876 instead of 9,876.
I know that I can use the formatter to completely customize the tooltip. Instead of completely redoing the tooltip, I’d just like to format the number and keep the existing look and feel.
Question: Is is possible to specify a format for the number(s) in the tooltip without writing a custom formatter?
Unfortunately that’s not possible, I am afraid: the default tooltip formatters are somewhat hidden inside the
PointandTooltipobjects and do not provide access to the number formatting.However, you may want to globally override the default implementation of a
Point‘stooltipFormatterwith something of your own, e.g.This implementation is the same as the default one except for the
Highcharts.numberFormatcall on the last line, which will do your number formatting.Keep in mind that such a change will apply to all your charts.