fix: 黄金指标图表项数据切换重复累积问题

This commit is contained in:
TsMask
2024-05-14 14:47:09 +08:00
parent 3b793c107c
commit 9b4bbcedc5

View File

@@ -469,18 +469,25 @@ function fnRanderChartData() {
}
}
// console.log(queryParams.sortOrder, chartLegendSelected);
// console.log(chartDataXAxisData, chartDataYSeriesData)
// console.log(chartDataXAxisData, chartDataYSeriesData);
// 绘制图数据
kpiChart.value.setOption({
legend: {
selected: chartLegendSelected,
kpiChart.value.setOption(
{
legend: {
selected: chartLegendSelected,
},
xAxis: {
type: 'category',
boundaryGap: false,
data: chartDataXAxisData,
},
series: chartDataYSeriesData,
},
xAxis: {
data: chartDataXAxisData,
},
series: chartDataYSeriesData,
});
{
replaceMerge: ['xAxis', 'series'],
}
);
}
/**图表折线显示全部 */