有没有办法将一些额外的数据传递给将用于在图表'工具提示'中显示的系列对象?
例如
tooltip: {
formatter: function() {
return '<b>'+ this.series.name +'</b><br/>'+
Highcharts.dateFormat('%b %e', this.x) +': '+ this.y;
}
Run Code Online (Sandbox Code Playgroud)
这里我们只能将series.name,this.x和this.y用于该系列.假设我需要单独传递另一个动态值与数据集,并可以通过系列对象访问.这可能吗?
谢谢大家.