// 设置轴线的属性
lineStyle: {
color: ‘#8e8e8e‘, //
width: 1 // 这里是为了突出显示加上的
}
},
data: chartData && chartData.datas && chartData.datas.x, // [‘04/16‘, ‘04/21‘, ‘04/26‘, ‘05/01‘, ‘05/06‘, ‘05/11‘, ‘05/16‘],
},
yAxis: {
name: that.yname || ‘‘,
axisLine: {
// 设置轴线的属性
lineStyle: {
color: ‘#8e8e8e‘,
width: 1 // 这里是为了突出显示加上的
},
formatter: ‘{value} %‘
},
splitLine: {
// 设置网格样式
show: false,
}
},
series: (chartData && chartData.series) || [
// 用于指定图标显示类型
{
// name: chartData && chartData.echartXName,
type: ‘bar‘,
data: chartData && chartData.datas && chartData.datas.y,
animationDelay: function (idx) {
return idx * 10;
},
}
],
animationEasing: ‘elasticOut‘,
animationDelayUpdate: function (idx) {
return idx * 5;
}
};