我想自定义特定系列中最后一个点的工具提示,将此系列和其他系列中的其他点保留为默认工具提示格式。基本上,我正在寻找与此配置类似的东西。在此先感谢您的帮助!
series: [{
tooltip: { // ?? tooltip does not work inside series
formatter: function() {
if (lastPoint in the series) { // ?? how to determine if lastPoint
return '<b>Final result is </b> ' + this.y;
}
// ?? return default format if it is not the last point in the series
}
},
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6]
}, {
data: [194.1, 95.6, 54.4, 29.9, 71.5, 106.4, 129.2]
}]