显示数值在echarts图表上,看label,比方说一张图上有三个线,不是全部的都显示,那么,就能够用下面作下判断
var seriesItem = {
name: '',
type: 'bar',
itemStyle: {
normal: {
color: '#3a99d9'
}
},
smooth: index === 3 ? true : false,//平滑的曲线,默认false折线 symbolSize: index === 3 ? 12:0,//线上的点的大小
data: [], label: { normal: { show: true, color: '#000', position: 'top', fontSize: 9 } } };
seriesItemYoy.label.normal.show = false;