我想使用highchart绘制图表。默认情况下,仅显示y轴网格线。如何启用该选项以显示x轴的网格线?
答案 0 :(得分:4)
将gridLineWidth
设置为1以启用网格线。像这样:
xAxis: {
gridLineWidth: 1
},
yAxis: {
gridLineWidth: 1
}
工作示例: http://jsfiddle.net/ewolden/7sj67gs6/
API参考: https://api.highcharts.com/highcharts/xAxis.gridLineWidth