highcharts pass multiple values to tooltip

后端 未结 5 1836
清歌不尽
清歌不尽 2020-12-08 20:58

I need to display 3 values on the tooltip: the time, the value and another value(change).

I saw this example (but the jsdfiddle is not working).

I tried thi

5条回答
  •  心在旅途
    2020-12-08 21:37

    What i have tried is concatenating series name with x-axis and y-axis value and it works fine for me. What issue you are facing?

    tooltip: { formatter: function () { return this.x + ': ' + this.series.name + ': ' + this.y; } }
    

提交回复
热议问题