Skip to content

Commit

Permalink
[#1569] Chart > Scatter Chart > Real Time Scatter > realTimeScatter.u…
Browse files Browse the repository at this point in the history
…se를 끄고 킬 수 있게 수정 필요 (#1570)

* [#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: 손기연 <sonky740@ex-em.com>
  • Loading branch information
sonky740 and exemfe3s authored Jan 8, 2024
1 parent 51170d2 commit 3f5b724
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "evui",
"version": "3.4.27",
"version": "3.4.28",
"description": "A EXEM Library project",
"author": "exem <dev_client@ex-em.com>",
"license": "MIT",
Expand Down
10 changes: 10 additions & 0 deletions src/components/chart/Chart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3f5b724

Please sign in to comment.