From 3f5b7242fe51dd6d222d576e1584f5880abc2a34 Mon Sep 17 00:00:00 2001 From: Sonky740 Date: Mon, 8 Jan 2024 20:48:17 +0900 Subject: [PATCH] =?UTF-8?q?[#1569]=20Chart=20>=20Scatter=20Chart=20>=20Rea?= =?UTF-8?q?l=20Time=20Scatter=20>=20realTimeScatter.use=EB=A5=BC=20?= =?UTF-8?q?=EB=81=84=EA=B3=A0=20=ED=82=AC=20=EC=88=98=20=EC=9E=88=EA=B2=8C?= =?UTF-8?q?=20=EC=88=98=EC=A0=95=20=ED=95=84=EC=9A=94=20(#1570)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [#1569]Chart > Scatter Chart > Real Time Scatter > realTimeScatter.use를 끄고 킬 수 있게 수정 필요 ###### - realTImeScatter를 끄고 킬 수 있게 하기 위해 Chart.vue에 watch 추가 - 끄고 킬 때마다 realTimeScatter의 데이터를 리셋 해줘야합니다. * [#1569] Chart > Scatter Chart > Real Time Scatter > realTimeScatter.use를 끄고 킬 수 있게 수정 필요 ###### - 배포를 위한 version up --------- Co-authored-by: 손기연 --- package.json | 2 +- src/components/chart/Chart.vue | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f452e2f9a..521508961 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "evui", - "version": "3.4.27", + "version": "3.4.28", "description": "A EXEM Library project", "author": "exem ", "license": "MIT", diff --git a/src/components/chart/Chart.vue b/src/components/chart/Chart.vue index d36865421..e94735d7d 100644 --- a/src/components/chart/Chart.vue +++ b/src/components/chart/Chart.vue @@ -263,6 +263,16 @@ } }); + watch(() => props.options.realTimeScatter?.use, (use) => { + evChart.options.realTimeScatter.use = use ?? false; + + evChart.update({ + updateSeries: true, + updateSelTip: { update: false, keepDomain: false }, + updateData: false, + }); + }); + onMounted(async () => { if (injectEvChartPropsInGroup?.value) { injectEvChartPropsInGroup.value.push(props);