完善数据处理
This commit is contained in:
@@ -186,7 +186,7 @@ type StateType = {
|
||||
let state: StateType = reactive({
|
||||
neType: [],
|
||||
chartRealTime: false,
|
||||
chartLegendSelectedFlag: false,
|
||||
chartLegendSelectedFlag: true,
|
||||
});
|
||||
|
||||
// 存储每个指标的临时固定颜色
|
||||
|
||||
@@ -551,18 +551,18 @@ function fnRanderChartData() {
|
||||
}
|
||||
|
||||
for (const item of orgData) {
|
||||
chartDataXAxisData.push(item['timeGroup']);
|
||||
const keys = Object.keys(item);
|
||||
for (const y of chartDataYSeriesData) {
|
||||
for (const key of keys) {
|
||||
if (y.key === key) {
|
||||
y.data.push(+item[key]);
|
||||
chartDataXAxisData.push(item['timeGroup']);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// console.log(queryParams.sortOrder, chartLegendSelected);
|
||||
// console.log(chartDataXAxisData, chartDataYSeriesData);
|
||||
///console.log(queryParams.sortOrder, chartDataXAxisData);
|
||||
console.log(chartDataXAxisData, chartDataYSeriesData);
|
||||
|
||||
// 绘制图数据
|
||||
kpiChart.value.setOption(
|
||||
|
||||
Reference in New Issue
Block a user