名前付きの値を使用する2つのデータ系列を含むhighchartsテーブルがあります。1つのシリーズのツールチップで、シリーズのデータポイントを参照したいと思います。したがって、この回答の解決策:同じグラフィックの各曲線のHighchartsで異なるフォーマッタを使用するにはどうすればよいですか?私を助けません。tooltipTextだけでなく、フォーマッターも必要です。
一つには:
formatter: function() {
return this.x + ': ' + this.series.name +
'<br> $' + Highcharts.numberFormat(this.y, 0);
}
そして他の人のために:
formatter: function() {
return 'In ' + this.x + ' the median value was' + this.median +
'and the total $' + Highcharts.numberFormat(this.y, 0);
}