Here is the image of what i actually want as a final output
http://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/stock/demo/responsive/ 以上是Highcharts的链接,我希望在一个工具提示中组合日期工具提示的值和股票的价值。我该怎么办?
highcharts
答案 0 :(得分:1)
相应地检查tooltip.formatter格式
tooltip: {
useHTML: true,
formatter: function() {
return '<small>' +
Highcharts.dateFormat('%A,%b %d,%Y',
new Date(this.x)) + '</small><br> '+
"<span style='color:" + this.points[0].series.color +
"'>\u25CF</span> " + this.points[0].series.name + ': <b> ' + this.y + '</b>';
}
},
Fiddle演示
答案 1 :(得分:0)
最简单的方法是将工具提示的split
属性设置为false值,并将系列名称更改为&#39; AAPL&#39;。