From 827d42e89879d4728c93100aa0a669081fcf1c4a Mon Sep 17 00:00:00 2001 From: Caozhenhui <823914102@qq.com> Date: Tue, 4 Jan 2022 11:53:31 +0800 Subject: [PATCH] fixed issue 183 --- web/src/components/MyEMS/common/SharePie.js | 4 +++- web/src/components/dashboard-alt/MarketShare.js | 4 +++- web/src/components/dashboard-alt/TotalOrder.js | 4 +++- web/src/components/dashboard-alt/TotalSales.js | 4 +++- web/src/components/plugins/Echarts.js | 4 +++- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/web/src/components/MyEMS/common/SharePie.js b/web/src/components/MyEMS/common/SharePie.js index 22f2f059..63e3ed29 100644 --- a/web/src/components/MyEMS/common/SharePie.js +++ b/web/src/components/MyEMS/common/SharePie.js @@ -35,7 +35,9 @@ const getOption = (data, isDark) => { type: 'pie', radius: ['100%', '87%'], avoidLabelOverlap: false, - hoverAnimation: false, + emphasis: { + scale: false + }, itemStyle: { borderWidth: 2, borderColor: isDark ? '#0E1C2F' : '#fff' diff --git a/web/src/components/dashboard-alt/MarketShare.js b/web/src/components/dashboard-alt/MarketShare.js index bddc45f7..9ea83164 100644 --- a/web/src/components/dashboard-alt/MarketShare.js +++ b/web/src/components/dashboard-alt/MarketShare.js @@ -35,7 +35,9 @@ const getOption = (data, isDark) => { type: 'pie', radius: ['100%', '87%'], avoidLabelOverlap: false, - hoverAnimation: false, + emphasis: { + scale: false + }, itemStyle: { borderWidth: 2, borderColor: isDark ? '#0E1C2F' : '#fff' diff --git a/web/src/components/dashboard-alt/TotalOrder.js b/web/src/components/dashboard-alt/TotalOrder.js index 753286e6..e754e603 100644 --- a/web/src/components/dashboard-alt/TotalOrder.js +++ b/web/src/components/dashboard-alt/TotalOrder.js @@ -64,7 +64,9 @@ const getOption = (data, isDark) => { borderColor: themeColors.primary, borderWidth: 2 }, - hoverAnimation: true, + emphasis: { + scale: true + }, data: data, connectNulls: true, smooth: 0.6, diff --git a/web/src/components/dashboard-alt/TotalSales.js b/web/src/components/dashboard-alt/TotalSales.js index 8b7578d4..85a082b3 100644 --- a/web/src/components/dashboard-alt/TotalSales.js +++ b/web/src/components/dashboard-alt/TotalSales.js @@ -95,7 +95,9 @@ const getOption = (month, isDark) => { symbol: 'circle', symbolSize: 10, smooth: false, - hoverAnimation: true, + emphasis: { + scale: true + }, areaStyle: { color: { type: 'linear', diff --git a/web/src/components/plugins/Echarts.js b/web/src/components/plugins/Echarts.js index a0225001..2025122e 100644 --- a/web/src/components/plugins/Echarts.js +++ b/web/src/components/plugins/Echarts.js @@ -140,7 +140,9 @@ const lineChartCode = `function linechartExample(){ borderColor: themeColors.primary, borderWidth: 2 }, - hoverAnimation: true, + emphasis: { + scale: true + }, data: totalOrderData, connectNulls: true, smooth: 0.6,