您可以使用 'axisLabel' 属性中的 'fontSize' 来设置 'yAxis' 的 name 文字大小。以下是一个示例代码:

option = {
  yAxis: {
    name: 'yAxis Name',
    axisLabel: {
      fontSize: 16  // 设置文字大小为 16px
    }
  },
  // 其他配置项...
};

// 使用 echarts 实例对象加载配置项
myChart.setOption(option);

以上示例中,'axisLabel' 属性中的 'fontSize' 设置为 '16',可以根据需要自行调整。

Echarts 设置 Y 轴名称文字大小

原文地址: https://www.cveoy.top/t/topic/gJg1 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录