|
@@ -3,6 +3,7 @@ import style from "../index.less";
|
|
import { Radio} from '@commonComp';
|
|
import { Radio} from '@commonComp';
|
|
import echarts from 'echarts';
|
|
import echarts from 'echarts';
|
|
import config from "@config";
|
|
import config from "@config";
|
|
|
|
+import 'zrender/lib/svg/svg';
|
|
/**
|
|
/**
|
|
* 来源于后台数据
|
|
* 来源于后台数据
|
|
* 图表类型
|
|
* 图表类型
|
|
@@ -130,7 +131,7 @@ class Chart extends Component{
|
|
const xAxis = getXAxisArr(type);
|
|
const xAxis = getXAxisArr(type);
|
|
const id = endDate?'chart'+endDate+index:'chart'+index;
|
|
const id = endDate?'chart'+endDate+index:'chart'+index;
|
|
let series = [],names=[],inx=-1;
|
|
let series = [],names=[],inx=-1;
|
|
- let myChart = echarts.init(document.getElementById(id));
|
|
|
|
|
|
+ let myChart = echarts.init(document.getElementById(id) ,null, {renderer: 'svg'});
|
|
|
|
|
|
const interval = {
|
|
const interval = {
|
|
week:24,
|
|
week:24,
|