伙计们可以在两个地方使用dataGrouping - 在rangeSelector和in系列中? 我想要实现的目标:
对于某些属性我需要默认'平均'近似规则,但对于某些规则 - ' sum'。这就是我将其添加到系列级别的原因。
rangeSelector: {
enabled: true,
selected: 1,
buttons: [
{
type: "week",
count: 1,
text: "1W",
dataGrouping: {
forced: true,
units: [["minute", [1]]]
}
},
{
type: "month",
count: 1,
text: "1M",
dataGrouping: {
forced: true,
units: [["hour", [1]]],
}
}
]
}
...
let serie = {
data,
name: 'some property',
dataGrouping: {approximation: "sum"}
}