" +
"
" + param.name + "
" +
"
"+
"" +
" " + param.seriesName + ": " +
"" + param.value + "元"+ "
";
return resultTooltip
}
},
grid: {
left: '10%',
top: '8%',
right: '5%',
bottom: '10%',
},
legend: {
show: true,
icon: 'none',
orient: 'horizontal',
top: '0.5%',
right: '8%',
itemWidth: 10.5,
itemHeight: 6,
itemGap: 0.1,
selectedMode: 'single',
selected: {
// // 选中'系列1'
// '贷款': false,
// // 不选中'系列2'
// '支付': true,
// '农富宝': false,
// '农信保': false,
// '农信租': false,
// '农信险': false,
},
textStyle: {
fontSize: 16,
color: '#10E6EB',
backgroundColor: '#373F52',
padding: [6, 10],
},
inactiveColor: '#ccc'
},
xAxis: [{
type: 'category',
data: xData,
axisLabel: {
show: true,
fontSize: 9,
textStyle: {
color: "#C9C8CD" //X轴文字颜色
},
formatter: function(value) {
var str = "";
str += value.substring(0, 4) + "\n";
str += value.substring(5, 10);
return str;
}
},
axisLine: {
show: false //不显示x轴
},
axisTick: {
show: false //不显示刻度
},
// boundaryGap: false,
splitLine: {
show: true,
width: 0.08,
lineStyle: {
type: "solid",
color: "#03202E"
}
},
axisPointer: { //轴指示器
show: false,
type: 'shadow',
// z: 1,
// shadowStyle: {
// color: {
// type: 'linear',
// x: 0,
// y: 0,
// x2: 0,
// y2: 1,
// colorStops: [{
// offset: 0,
// color: 'rgba(18,155,249,0)' // 0% 处的颜色
// }, {
// offset: 1,
// color: 'rgba(18,155,249,1)' // 100% 处的颜色
// }],
// global: false // 缺省为 false
// },
// shadowColor: 'rgba(0, 0, 0, 0.2)',
// shadowBlur: 5
// }
},
}],
yAxis: [{
type: 'value',
// scale: true, //坐标轴起点不限制0
axisLabel: {
show: true,
textStyle: {
fontSize: 9,
color: "#C9C8CD" //X轴文字颜色
}
},
splitLine: {
show: false,
},
axisTick: {
show: false, //不显示刻度
},
axisLine: {
show: false,
},
nameTextStyle: {
color: "#FFFFFF"
},
splitArea: {
show: false
}
}],
series: series
};