echarts折线图每条数据最大值没有显示,这是为什么呢?最小值有显示,最大值没有
option = {
"tooltip": {
"trigger": "axis"
},
"legend": {},
"grid": {
"left": "3%",
"right": "4%",
"bottom": "3%",
"containLabel": true
},
"xAxis": {
"type": "category",
"boundaryGap": false,
"data": [
"2020-01",
"2020-02",
"2020-03",
"2020-04",
"2020-05",
"2020-06",
"2020-07",
"2020-08",
"2020-09",
"2020-10",
"2020-11",
"2020-12",
"2021-01",
"2021-02",
"2021-03",
"2021-04",
"2021-05",
"2021-06",
"2021-07",
"2021-08",
"2021-09",
"2021-10",
"2021-11",
"2021-12",
"2022-01",
"2022-02",
"2022-03",
"2022-04",
"2022-05",
"2022-06",
"2022-07",
"2022-08",
"2022-09",
"2022-10",
"2022-11",
"2022-12"
]
},
"yAxis": {
"name": "車次",
"nameTextStyle": {
"fontFamily": "monospace"
},
"type": "value",
"axisLabel": {
"show": true,
"formatter": "{value} 車次",
"textStyle": {
"fontFamily": "monospace"
}
}
},
"series": [
{
"name": "现金",
"type": "line",
"data": [
0,
0,
0,
0,
0,
0,
0,
205.4,
45.12,
0,
0,
303.52,
83.1,
0,
0,
0,
0,
0,
0,
0,
0,
246.99,
0,
0,
143.1,
33.62,
0,
63.6,
0,
0,
0,
0,
0,
0,
0,
0,
1124.45
],
"markPoint": {
"data": [
{
"type": "max",
"name": "Max"
},
{
"type": "min",
"name": "Min"
}
]
}
},
{
"name": "记账卡",
"type": "line",
"data": [
0,
0,
0,
0,
0,
0,
0,
591.28,
0,
0,
0,
9.96,
56.1,
0,
0,
0,
0,
0,
0,
0,
0,
64.7,
0,
0,
0,
9.64,
0,
1.94,
6.6,
0,
0,
0,
0,
0,
0,
0,
740.22
],
"markPoint": {
"data": [
{
"type": "max",
"name": "Max"
},
{
"type": "min",
"name": "Min"
}
]
}
},
{
"name": "儲值卡",
"type": "line",
"data": [
0,
0,
0,
0,
0,
0,
0,
42.24,
0,
0,
0,
31.48,
6.84,
0,
0,
0,
0,
0,
0,
0,
0,
41.7,
0,
0,
6.54,
6.76,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
135.56
],
"markPoint": {
"data": [
{
"type": "max",
"name": "Max"
},
{
"type": "min",
"name": "Min"
}
]
}
},
{
"name": "员工卡",
"type": "line",
"data": [
0,
0,
0,
0,
0,
0,
0,
624.08,
1325.34,
0,
0,
201.66,
173.29,
0,
0,
0,
0,
0,
0,
0,
0,
204.57,
0,
0,
470.48,
61.04,
39.7,
380.13,
38.22,
0,
0,
0,
0,
0,
0,
0,
3518.51
],
"markPoint": {
"data": [
{
"type": "max",
"name": "Max"
},
{
"type": "min",
"name": "Min"
}
]
}
}
]
};