fixed issue 183
parent
617c7825b4
commit
4d5e58f9cf
|
@ -7,7 +7,9 @@ import * as echarts from 'echarts/lib/echarts';
|
||||||
import ReactEchartsCore from 'echarts-for-react/lib/core';
|
import ReactEchartsCore from 'echarts-for-react/lib/core';
|
||||||
import { useContext } from 'react';
|
import { useContext } from 'react';
|
||||||
import AppContext from '../../context/Context';
|
import AppContext from '../../context/Context';
|
||||||
|
import { PieChart } from 'echarts/charts';
|
||||||
|
|
||||||
|
echarts.use([PieChart]);
|
||||||
const getOption = (data, isDark) => {
|
const getOption = (data, isDark) => {
|
||||||
const grays = getGrays(isDark);
|
const grays = getGrays(isDark);
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue