Commit e073b4c9443894457c7463bb43f918b508c4bc9a

Authored by ChenErik
Committed by GitHub
1 parent 554f4615

fix(echarts): add resize animation (#1950)

Showing 1 changed file with 6 additions and 1 deletions
src/hooks/web/useECharts.ts
... ... @@ -79,7 +79,12 @@ export function useECharts(
79 79 }
80 80  
81 81 function resize() {
82   - chartInstance?.resize();
  82 + chartInstance?.resize({
  83 + animation: {
  84 + duration: 300,
  85 + easing: 'quadraticIn',
  86 + },
  87 + });
83 88 }
84 89  
85 90 watch(
... ...