fixed issue 183

pull/109/head
Caozhenhui 2022-01-04 11:32:28 +08:00
parent 617c7825b4
commit 4d5e58f9cf
1 changed files with 2 additions and 0 deletions

View File

@ -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 {