上代码:
xAxis: [
{
type: 'category',
// prettier-ignore
data: ['中国', '美国', '德国', '英国', '新加坡'],
axisLabel: {
show: true,
lineStyle:{
color:'#999',//更改坐标轴颜色
},
textStyle: {
color: '#466DC4', //更改坐标轴文字颜色
fontSize : 12 //更改坐标轴文字大小
}
},
splitLine:{ //修改背景线条样式
show:false,//是否展示
lineStyle:{
color:"#353b5a",//线条颜色
type:"dashed"//线条样式,默认是实现,dashed是虚线
}
}
}
]