javascript - Highcharts:隐藏类别线

标签 javascript highcharts

我有这个xAxis配置:

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

如何隐藏这些行? enter image description here

最佳答案

您是否尝试过添加 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/

相关文章:

tooltip - highcharts 工具提示文本对齐

javascript - 加载 Highcharts 文档时 DOM 节点计数增加 (Chrome)

javascript - 如何禁用 highcharts 仪表中的工具提示?

highcharts - 从 rangeSelector 获取日期输入框的值

Javascript 不可变 pop()?

javascript - 如何动态更改Highcharts(具体为HighMaps)的背景颜色?

javascript - 如何在单击按钮上向此 JavaScript 或 HTML 添加 CSS?

javascript - TinyMCE 皮肤,比

javascript - Angular 2 中的路由器出现问题

javascript - AngularJS:没有为 Controller 定义应用程序