0
我正在使用Highcharts作为我的一个项目。除了我不能改变线条样式('Solid','ShortDash','ShortDot','ShortDashDot','ShortDashDotDot','Dot','Dash','LongDash','DashDot','LongDashDot' ,'LongDashDotDot')在x轴的底部网格线,如附图所示。HighCharts:如何更改最底部x轴网格线的样式
我正在使用Highcharts作为我的一个项目。除了我不能改变线条样式('Solid','ShortDash','ShortDot','ShortDashDot','ShortDashDotDot','Dot','Dash','LongDash','DashDot','LongDashDot' ,'LongDashDotDot')在x轴的底部网格线,如附图所示。HighCharts:如何更改最底部x轴网格线的样式
因为你强调了线不是yAxis
一个gridLine
和虚线样式并不适用于它。实际上它覆盖了最底部的网格线。通过其宽度设置为0
API参考禁用它:
http://api.highcharts.com/highcharts/xAxis.lineWidth
http://api.highcharts.com/highcharts/yAxis.gridLineDashStyle
感谢您的帮助。 –
这很容易通过CSS“nth-type-type”选择器来实现(https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-of-type)。例如:http://jsfiddle.net/hfkz9ys1/。 –