高图表数据分组在缩放时未考虑所有值

high chart data grouping is not considering all the values while zooming

highstock 数据分组在缩放时是错误的。我正在对一天中每个小时的数据进行分组。

无缩放数据分组

带缩放的数据分组

正如您从图像中看到的那样,第 3 小时和第 16 小时不再具有之前的 y 轴总和值。

谁能告诉我这里出了什么问题?

fiddle - highstock data grouping with zoom

{
      type: 'column',
      name: 'Stock Volume',
      color: 'red',
      data: data, 
      dataGrouping: {
          forced: true,
          units: [['hour', [1]]],
          approximation: 'sum',
      }
        }

series.getExtremesFromAll 设置为 true 解决了我的问题。

一般只对可见范围内的点进行分组,极值以外的点不计入计算。在文档中,他们只提到了 yAxis 极值,但它也会影响数据分组。

series: [{
            type: 'column',
            name: 'AAPL Stock Volume',
            color: 'red',
            data: data, 
            getExtremesFromAll: true,
            dataGrouping: {
           forced: true,
          units: [['hour', [1]]],
          approximation: 'sum',
      }
        }]

fiddle

github issue link