0

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?

Community
  • 1
  • 1
Rafael code
  • 289
  • 1
  • 3
  • 13

1 Answers1

1

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

Edited: Added valuePrefix

Wilts C
  • 1,720
  • 1
  • 21
  • 28
  • Works perfectly, thanks! Any idea how to also show the symbol for each chart type in front of the valuesuffix? – Rafael code Jun 15 '16 at 07:42
  • @Rafaelcode Not sure what you mean. I added valuePrefix for each series and updated my answer. Try to play around with the API. – Wilts C Jun 15 '16 at 07:49
  • In the given example Rainfall has a blue rectangle in front of it, and Temperature has a blackish circle with a line. Would be nice to include these in the tooltip as well. – Rafael code Jun 15 '16 at 07:58
  • @Rafaelcode You can refer here http://stackoverflow.com/questions/25973920/how-to-display-highchart-series-line-marker-symbol-from-tooltip-formatter – Wilts C Jun 15 '16 at 08:17