1、legend’对象下的‘textStyle’
legend: {
data:['蒸发量','降水量','平均温度'],
textStyle: {
fontSize: 18
},
},
2、yAxis 对象下的‘nameTextStyle’
3、yAxis 对象下的‘axisLabel’ X轴同理
yAxis: [
{
type: 'value',
name: '水量',
nameTextStyle:{
fontSize: 18
},
min: 0,
max: 250,
interval: 50,
axisLabel: {
formatter: '{value} ml',
textStyle: {
fontSize : 18
},
}
},
{
type: 'value',
name: '温度',
nameTextStyle:{
fontSize: 18
},
min: 0,
max: 25,
interval: 5,
axisLabel: {
formatter: '{value} °C',
textStyle: {
fontSize : 18
}
}
}
],