self.option.yAxis.push({
gridIndex: index, //y 轴所在的 grid 的索引
type: 'value',
name: currentValue.name,//纵坐标名字
nameRotate:0,//纵坐标旋转的角度
nameTextStyle: {
padding: 10, // 设置与坐标轴的距离,单位为像素
color: 'black' // 这里设置颜色
},
nameLocation: "middle",//纵坐标名字的位置
nameGap: 30,//纵坐标名字与轴线之间的距离
position: 'left', //y轴的位置
inverse: false,
splitLine: {
//坐标轴在 grid 区域中的分割线
show: false,
},
axisLine: {
//坐标轴轴线相关设置 竖着那一根
show: true,
lineStyle: {
color: '#979797',
},
},
axisTick: {
//坐标轴刻度相关设置
show: false,
},
axisLabel: {
//刻度标签
show: true,
showMinLabel: false, // 隐藏最小值标签
showMaxLabel: false, // 隐藏最大值标签
},
})