最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - echarts hide xaxis and ticks - Stack Overflow

programmeradmin1浏览0评论

How can I hide xaxis and ticks in echarts? The closest I have e is setting the color to the page color but the ticks still show in gray:

xAxis: {
  type: 'category',
  splitLine:{     show:false   },
  axisLabel: {
    textStyle: {
        color: 'white'
    }
  },
}

How can I hide xaxis and ticks in echarts? The closest I have e is setting the color to the page color but the ticks still show in gray:

xAxis: {
  type: 'category',
  splitLine:{     show:false   },
  axisLabel: {
    textStyle: {
        color: 'white'
    }
  },
}
Share Improve this question asked Aug 22, 2022 at 2:34 pguardiariopguardiario 55.1k21 gold badges129 silver badges168 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6

try expanding on your Series options:

xAxis: {
  type: 'category',
  splitLine:{ show: false },
  axisLine: { show: false },
  axisTick: { show: false },
  axisLabel: { show: false }
  },
}

Here are the defaults

发布评论

评论列表(0)

  1. 暂无评论