From cb533a379ce12e33baf6b4414fb34c1de93692b0 Mon Sep 17 00:00:00 2001 From: skie1997 Date: Mon, 24 Feb 2025 15:29:17 +0800 Subject: [PATCH] fix: register charts animation --- src/components/GoVChart/register.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/GoVChart/register.ts b/src/components/GoVChart/register.ts index cc7ba196..62dc86da 100644 --- a/src/components/GoVChart/register.ts +++ b/src/components/GoVChart/register.ts @@ -2,6 +2,7 @@ import { VChart } from '@visactor/vchart/esm/core'; import { registerBarChart, registerAreaChart, registerLineChart, registerPieChart, registerFunnelChart, registerWordCloudChart, registerScatterChart } from '@visactor/vchart/esm/chart'; import { registerTooltip, registerCartesianCrossHair, registerDiscreteLegend, registerLabel } from '@visactor/vchart/esm/component'; import { registerDomTooltipHandler } from '@visactor/vchart/esm/plugin/components'; +import { registerAnimate } from '@visactor/vchart'; export const registerChartsAndComponents = () => { VChart.useRegisters([ @@ -19,7 +20,10 @@ export const registerChartsAndComponents = () => { registerDomTooltipHandler, registerCartesianCrossHair, registerDiscreteLegend, - registerLabel + registerLabel, + + // 动画 + registerAnimate ]); }