0
啓用dataGrouping的highstock列範圍似乎不能正確計算dataAggregation。Highstock列數據分組值不一致
更改範圍時,聚合值似乎會改變。 如果向右滾動更多,2014年3月會顯示不同的值。
碼和的jsfiddle:
dataGrouping: {
enabled: true,
approximation: function() {
const indices = _.range(this.dataGroupInfo.start, this.dataGroupInfo.start + this.dataGroupInfo.length);
const low = _.min(indices.map(i => this.options.data[i][1]));
const high = _.max(indices.map(i => this.options.data[i][2]));
return [low, high];
},
groupPixelWidth: 50
}