From 4d5e58f9cffd248b15f99a7c650305021c4b1ca8 Mon Sep 17 00:00:00 2001 From: Caozhenhui <823914102@qq.com> Date: Tue, 4 Jan 2022 11:32:28 +0800 Subject: [PATCH] fixed issue 183 --- web/src/components/dashboard-alt/MarketShare.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/components/dashboard-alt/MarketShare.js b/web/src/components/dashboard-alt/MarketShare.js index f1797103..bddc45f7 100644 --- a/web/src/components/dashboard-alt/MarketShare.js +++ b/web/src/components/dashboard-alt/MarketShare.js @@ -7,7 +7,9 @@ import * as echarts from 'echarts/lib/echarts'; import ReactEchartsCore from 'echarts-for-react/lib/core'; import { useContext } from 'react'; import AppContext from '../../context/Context'; +import { PieChart } from 'echarts/charts'; +echarts.use([PieChart]); const getOption = (data, isDark) => { const grays = getGrays(isDark); return {