图中的 [ 新增用户 ] 量小,但是显示位置不对
配置项如下
option = {
title: {
text: ''
},
tooltip: {
trigger: 'axis'
},
legend: {
data: ["活跃客户", "新增用户", "沉睡用户"]
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis: {
type: 'category',
boundaryGap: false,
data: ["2018-03", "2018-04", "2018-05"]
},
yAxis: {
type: 'value',
splitLine: {
show: false
}
},
series: [
{
name: "活跃客户",
type: "line",
stack: "总量",
data: [879374, 859000, 855461]
},
{
name: "新增用户",
type: "line",
stack: "总量",
data: [28078, 1368, 0]
},
{
name: "沉睡用户",
type: "line",
stack: "总量",
data: [3878263, 3928785, 3981568]
}
]
};