xAxis: {
        type: 'category',
        boundaryGap: false,
        data: ['周一','周二','周三','周四','周五','周六','周日'],
        axisLabel:{
            show:true,
            interval: 0,    // {number}表示隔几个标签显示一个标签
            rotate: 60,
            textStyle: {
                color: 'blue',
                fontFamily: 'sans-serif',
                fontSize: 15,
                fontStyle: 'italic',
                fontWeight: 'bold'
            }
        }
    },

下面看旋转效果,详情参考ECharts官网http://echarts.baidu.com/文档下的配置项手册

ECharts 刻度标签旋转rotate

转载于:https://my.oschina.net/af666/blog/872040

相关文章:

  • 2021-10-08
  • 2022-12-23
  • 2021-08-14
  • 2021-06-12
  • 2022-02-05
  • 2021-06-29
  • 2022-12-23
  • 2021-05-12
猜你喜欢
  • 2022-12-23
  • 2021-06-20
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-01
相关资源
相似解决方案