From 13ba134cfd13a6b90ebcc7dbb07974b742d4ff29 Mon Sep 17 00:00:00 2001 From: ulleo Date: Tue, 23 Jan 2024 11:09:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8C=BA=E9=97=B4=E6=9D=A1=E5=BD=A2?= =?UTF-8?q?=E5=9B=BE=E8=B0=83=E6=95=B4=E5=A4=A7=E5=B0=8F=E5=90=8E=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=9D=A1=E6=B6=88=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/views/chart/chart/bar/bar_antv.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/core/frontend/src/views/chart/chart/bar/bar_antv.js b/core/frontend/src/views/chart/chart/bar/bar_antv.js index 4cea5a2f12..d8466df7a5 100644 --- a/core/frontend/src/views/chart/chart/bar/bar_antv.js +++ b/core/frontend/src/views/chart/chart/bar/bar_antv.js @@ -296,6 +296,11 @@ export function timeRangeBarOptionAntV(plot, container, chart, action) { // config const slider = getSlider(chart) const analyse = getAnalyse(chart) + + data.forEach(d => { + d.tempId = (Math.random() * 10000000).toString() + }) + // options const options = { theme: theme, @@ -364,7 +369,9 @@ export function timeRangeBarOptionAntV(plot, container, chart, action) { type: 'time', min: minTime, max: maxTime, - mask: 'YYYY-MM-DD HH:mm:ss', + mask: 'YYYY-MM-DD HH:mm:ss' + }, + tempId: { key: true } } @@ -373,7 +380,9 @@ export function timeRangeBarOptionAntV(plot, container, chart, action) { values: { min: minNumber, max: maxNumber, - mask: 'YYYY-MM-DD HH:mm:ss', + mask: 'YYYY-MM-DD HH:mm:ss' + }, + tempId: { key: true } }