我有xAxis的配置:

xAxis: {
  type: 'datetime',
  crosshair: true,
  showFirstLabel: true,
  showLastLabel: true,
  categories: props.currentPeriodDays,
  labels: {
    step: 20
  }
}


我如何隐藏这些线?
javascript -  Highcharts :隐藏类别的行-LMLPHP

最佳答案

您是否尝试添加gridLineWidth: 0tickWidth: 0

因此,代码如下所示:

xAxis: {
  type: 'datetime',
  crosshair: true,
  showFirstLabel: true,
  showLastLabel: true,
  gridLineWidth: 0,
  tickWidth: 0,
  categories: props.currentPeriodDays,
  labels: {
    step: 20
  }
}


希望这可以帮助

关于javascript - Highcharts :隐藏类别的行,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/46955117/

10-11 13:00
查看更多