'How do you format totalled 'y' axis numbers in the tooltip dialog box on a stacked column chart?

In order to format the tooltip y axis numbers, I specified the following formatting parameters in the 'tooltip:' tag...

tooltip: {
valueDecimals: 2, valuePrefix: '$',

I introduced another value, point.stackTotal(that sums the values in each stacked column to give me a total value). This number is NOT formatted!

How do I format this total number, for example, 6589.34, should be $6,589.34

Thank you in anticipation.

I tried specifying some formatting parameters in the 'tooltip:' tag...

tooltip: {
valueDecimals: 2, valuePrefix: '$',

This only works for the y axis values, for example, 2,345.3 becomes $2,345.30



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source