Incubator-echarts: x轴和y轴 的颜色如何更换

Created on 9 Nov 2015  ·  2Comments  ·  Source: apache/incubator-echarts

柱状图的颜色和图表背景颜色都可以修改,但是目前没发现怎么修改两个轴的颜色

Most helpful comment

x轴(y轴同理):

xAxis: [
  {
    type : 'category',
    data : [],
    splitLine: false,
    nameTextStyle: {
      color: '' // x坐标轴名称文字样式
    },
    axisLine: {
      lineStyle: {
        color: '' //坐标轴线颜色
      }
    }
  }
]

All 2 comments

x轴(y轴同理):

xAxis: [
  {
    type : 'category',
    data : [],
    splitLine: false,
    nameTextStyle: {
      color: '' // x坐标轴名称文字样式
    },
    axisLine: {
      lineStyle: {
        color: '' //坐标轴线颜色
      }
    }
  }
]

部分特殊的数据,要设置额外的颜色那种,在坐标轴上如何设置呢?

Was this page helpful?
0 / 5 - 0 ratings