1
我使用Highcharts提示生成驗證碼:highcharts:提示顯示了花鍵而不是散點圖
tooltip: {
shared: true,
crosshairs: true,
formatter: function() {
var s = '<b>' + Highcharts.dateFormat('%e. %b %Y, %H:00', this.x) + '</b>';
$.each(this.points, function (i, point) {
s += '<br/>' + point.series.name + ': ' + point.y + ' m/s';
});
return s;
}
}
它完美對於使用花的defaultSeriesType圖,但它不」 t適用於散點圖。
請參閱此小提琴http://jsfiddle.net/s83aT/爲樣條和分散的行動。
任何意見將不勝感激。提前致謝。
正如我所見,它是由共享選項引起的,當它被設置爲false時,出現工具提示。 – 2013-02-21 11:18:46
@ SebastianBochan謝謝,這確實指向了我最終實現的解決方案,請參見下文。 – 2013-02-25 11:31:16