Browse Source

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

ChenErik 2 years ago
parent
commit
e073b4c944
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/hooks/web/useECharts.ts

+ 6 - 1
src/hooks/web/useECharts.ts

@@ -79,7 +79,12 @@ export function useECharts(
   }
 
   function resize() {
-    chartInstance?.resize();
+    chartInstance?.resize({
+      animation: {
+        duration: 300,
+        easing: 'quadraticIn',
+      },
+    });
   }
 
   watch(