高库存。当点在绘图带区域时,我可以添加一行工具提示吗?

highstock. Can I add one line of tooltip when the point is in the area of plotbands?

我在股票图表中有一条线和几个绘图带。

首先我想显示 plotband 的名称作为它的标签,但是当时间范围是 "all" 时,plotband 的宽度太短,标签相互重叠。

所以我不想在点的工具提示中显示 plotband 的名称,例如:

Tooltip's head
* plotband's name
* lineName: xxx

当点不在绘图带中时,"plotband's name " 不应显示。

可以吗?或者有没有其他方法可以正确显示 plotband 的名称,而不重叠?

自己解决的,可以使用formatter,通过this.series.options.xAxis[0].plotBands可以得到plotbands信息,判断该点是否在当前bands中