return {
title: {
text: obj.title || '',
top: obj.titleTop || '0',
left: 'center',
textStyle: {
color: '#fff',
fontSize: '14',
fontWeight: 'normal',
}
},
legend: {
data: obj.legend || [],
icon: 'rect',
iconStyle: {
width: 20
},
top: '15%',
itemHeight: 10,
itemWidth: 20,
itemGap: 50,
textStyle: {
color: '#fff'
}
},
grid: obj.grid || {
top: '15%',
bottom: "10%",
right: '5%'
},
xAxis: {
type: 'category',
boundaryGap: obj.boundaryGap || false,
data: obj.xAxis,
axisTick: {
show: true
},
axisLabel: {
textStyle: {
fontSize: 12,
color: '#fff'
}
},
splitLine: {
show: false,
lineStyle: {
color: '#ff0'
}
},
color: '#fff',
},
yAxis: {
// show:false,
axisLine: {
show: false,
},
axisTick: {
show: false
},
splitLine: {
show: false
},
axisLabel: {
textStyle: {
fontSize: 12,
color: '#fff',
},
show: false
// show:obj.axisLabel ? obj.axisLabel : false
},
},
color: obj.color,
// ['#79b1fb', '#f9c267', '#96d19b'],
tooltip: {
trigger: 'axis'
},
series: obj.series
}
}