Search code examples
highchartshighcharts-ng

A different suffix from an array for each line on Highcharts


What I need is to show a different valuesuffix for each chart type value based on a unique array for each series.

I have considered the answer in this question and created this jsfiddle.a

It will only work when the tooltip is displayed for one series at a time. If I set the series tooltip to be shareda, it will not work.

Any ideas?


Solution

  • For tooltip shared with multiple series, you need to loop the points like this in order for the tooltip to work.

    Edited: Added valuePrefix