HighCharts:如何改变最底部x轴网格线的样式

时间:2017-09-04 12:06:39

标签: highcharts

我正在为我的一个项目使用Highcharts。一切都没问题,除了我无法改变线条样式(' Solid'' ShortDash',' ShortDot',' ShortDashDot',' ; ShortDashDotDot''点''短跑'' LongDash'' DashDot'' LongDashDot' ,x轴底部网格线的LongDashDotDot'),如附图所示。

I am using Highcharts for one of my project. Everything is okay except I could not change style() of bottom grid line in x axis as shown in the attached image.

1 个答案:

答案 0 :(得分:1)

因为您突出显示的行不是gridLine的{​​{1}},并且短划线样式不适用于它。实际上它涵盖了最底部的网格线。通过将其宽度设置为0来禁用它。

API参考:
http://api.highcharts.com/highcharts/xAxis.lineWidth
http://api.highcharts.com/highcharts/yAxis.gridLineDashStyle

例:
http://jsfiddle.net/mnp6xa57/