如何让曲线上所有数据点都显示出数值,X轴分隔不变
配置项如下
option = {
title: {
text: '广州市历年中小客车增量指标摇号人数'
},
tooltip : {
trigger: 'axis',
axisPointer: {
type: 'cross',
label: {
backgroundColor: '#6a7985'
}
}
},
legend: {
data:['审核通过人数']
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis : [
{
name : '日期',
type : 'category',
boundaryGap : false,
markPoint: {
show : true,
data: [
{type: 'max', name: '最大值'},
{type: 'min', name: '最小值'}
]
},
data : ['2013-07',
'2013-08',
'2013-09',
'2013-10',
'2013-11',
//'2013-12',
'2014-01',
'2014-02',
'2014-03',
'2014-04',
'2014-05',
'2014-06',
'2014-07',
'2014-08',
'2014-09',
'2014-10',
'2014-11',
//'2014-12',
'2015-01',
'2015-02',
'2015-03',
'2015-04',
'2015-05',
'2015-06',
'2015-07',
'2015-08',
'2015-09',
'2015-10',
'2015-11',
'2015-12',
'2016-01',
'2016-02',
'2016-03',
'2016-04',
'2016-05',
'2016-06',
'2016-07',
'2016-08',
'2016-09',
'2016-10',
'2016-11',
'2016-12',
'2017-01',
'2017-02',
'2017-03',
'2017-04',
'2017-05',
'2017-06',
'2017-07',
'2017-08',
'2017-09',
'2017-10',
'2017-11',
'2017-12',
]
}
],
yAxis : [
{
type : 'value'
}
],
series : [
{
name : '审核通过人数',
type:'line',
label: {
normal: {
show: true,
position: 'top'
}
},
showAllSymbol:true,
markPoint: {
data: [
{type: 'max', name: '最大值'},
{type: 'min', name: '最小值'}
]
},
data:[154915,
169627,
186084,
200367,
209372,
212921,
208579,
224703,
233811,
240827,
242263,
244352,
248755,
248958,
248900,
254300,
262524,
272033,
284044,
309272,
326992,
354874,
382031,
408980,
437151,
431071,
438117,
433374,
446899,
444385,
474479,
491792,
502108,
504170,
508406,
520176,
520058,
511921,
518107,
511785,
515250,
510633,
534580,
548805,
556066,
557922,
563878,
575025,
585441,
585390,
609849,
602428
]
}
]
};