简体   繁体   English

echarts 隐藏 xaxis 和刻度

[英]echarts hide xaxis and ticks

How can I hide xaxis and ticks in echarts?如何在 echarts 中隐藏 xaxis 和刻度? The closest I have come 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'
    }
  },
}

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 是默认值

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM