splitLine: {
show: true,
lineStyle: {
color: ['rgba(255,255,255,0.5)'],
width: 1,
type: 'dashed'
}
}
axisLabel: {
show: true,
textStyle: {
color: '#ffffff'
}
}
color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: 'rgba(15,255,189,0.5)'
},
{
offset: 1,
color: 'rgba(15,255,189,0)'
}
])
this.myChart.on('click', function (params) {
console.log(params);
//param.dataIndex为data的索引值,name为市名
});