fix: register charts animation

This commit is contained in:
skie1997 2025-02-24 15:29:17 +08:00
parent 00578479e3
commit cb533a379c

View File

@ -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
]);
}