score:5

Accepted answer

you don't need to change the tooltip.formatter, because it's the formatter itself who will change the tooltip.

i would try something like :

tooltip: {
     formatter: function() {
          var unit = ' $',
              result = this.value;
          if(this.series.name == 'your_currency_serie_name'){
               result += unit;
          }
          return result;
     }
}

where 'your_currency_serie_name' is the name of the serie which refers to currency values.

score:3

you can set the tooltip options in each series as well via the valuedecimals, valueprefix, and valuesuffix options. the tooltip will then use these options for displaying the data. live demo.

generic setup:

...
        series: [{
            tooltip: {
                valuedecimals: 0,
                valueprefix: '',
                valuesuffix: ''
            },
            data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
        }, {
            tooltip: {
                valuedecimals: 2,
                valueprefix: '$',
                valuesuffix: ' usd'
            },
            data: [129.9, 171.5, 1106.4, 1129.2, 1144.0, 1176.0, 1135.6, 1148.5, 1216.4, 1194.1, 195.6, 154.4]
        }]
...

Related Query

More Query from same tag