我有一个Highstock图表,我想在其中添加"时区"作为叠加。
默认图表:
预期:
每个区域都有一个名称,一个开始和结束时间戳,一个背景颜色(这里有alpha)和基本标签属性。
是否可以使用当前的API?
我虽然有两种方法:
答案 0 :(得分:1)
您可以使用plotBands
xAxis: {
plotBands: [{ // mark the weekend
color: 'rgba(120,120,150,0.3)',
from: 2,
to: 4
},{ // mark the weekend
color: 'rgba(255,0,150,0.3)',
from: 3,
to: 5
}]
}