将高库存标志更改为 xAxis 上的线条

change highstock flag to lines on xAxis

本文关键字:xAxis 高库存 标志      更新时间:2023-09-26

您好,以下代码使用类型将标志放在系列上:"标志"名称:'' 数据:[{}] 等等," 有什么方法可以更改标志类型来绘制线条或区域吗?

代码非常简单

                  series: [{
                      type: 'line',
                      name: 'AAPL',
                      data: ohlc,
                      id:'dataseries'
                  }, {
                  type: 'flags', 'this is what i wanted to change to lines 
                  name: 'Flags on series',
                  data: [{
                  x: 1114992000000,
                      title: 'On series'
                  }, {
                      x: Date.UTC(2011, 3, 28),
                      title: 'On series'
           }],
                      onSeries: 'dataseries',
                      shape: 'squarepin'
                  }, {
                      type: 'line',
                      name: 'Volume',
                      data: volume,
                      yAxis: 1
        }]

您是否知道 Highchart 开箱即用支持的绘图线或绘图带?他们没有在x轴上给出这些的例子,但是当垂直方向时,它们也非常有效

x 轴上的垂直绘图线 @ jsFiddle