|
|
|
@ -10,7 +10,29 @@ const getId = (type) => {
|
|
|
|
|
|
|
|
|
|
const getOption = (e) => {
|
|
|
|
|
if (e === 'line' || e === 'multiLines') {
|
|
|
|
|
return { title: '', yNames: [], gridTop: 30, gridLeft: 5, gridBottom: 10, gridRight: 10, xName: '', yName: '', tooltip:true, legend:true };
|
|
|
|
|
return {
|
|
|
|
|
title: '',
|
|
|
|
|
yNames: [],
|
|
|
|
|
gridTop: 30,
|
|
|
|
|
gridLeft: 5,
|
|
|
|
|
gridBottom: 10,
|
|
|
|
|
gridRight: 10,
|
|
|
|
|
xName: '',
|
|
|
|
|
xAxisLineShow: true,
|
|
|
|
|
xAxisLineColor: '#DCE2E8',
|
|
|
|
|
xAxisTickShow: true,
|
|
|
|
|
xAxisTickColor: '#DCE2E8',
|
|
|
|
|
xAxisLabelShow: true,
|
|
|
|
|
xAxisLabelInterval: false,
|
|
|
|
|
xAxisLabelFormatter: '',
|
|
|
|
|
xAxisLabelColor: '#fff',
|
|
|
|
|
xAxisLabelFontSize: 12,
|
|
|
|
|
xAxisLabelMargin: 3,
|
|
|
|
|
boundaryGap: true,
|
|
|
|
|
yName: '',
|
|
|
|
|
tooltip: true,
|
|
|
|
|
legend: true
|
|
|
|
|
};
|
|
|
|
|
} else if (e === 'bar' || e === 'multiBars') {
|
|
|
|
|
return { title: '', yNames: [], gridTop: 30, gridLeft: 5, gridBottom: 10, gridRight: 10, xName: '', yName: '', tooltip:true, legend:true };
|
|
|
|
|
} else if (e === 'backgroundBar') {
|
|
|
|
|