Chart.js v2 - hiding grid lines

后端 未结 7 1983
旧时难觅i
旧时难觅i 2020-12-12 15:25

I am using Chart.js v2 to draw a simple line chart. Everything looks fine, except there are grid lines that I don\'t want:

The documentation for Line Chart

相关标签:
7条回答
  • 2020-12-12 16:08

    OK, nevermind.. I found the trick:

        scales: {
          yAxes: [
            {
              gridLines: {
                    lineWidth: 0
                }
            }
          ]
        }
    
    0 讨论(0)
提交回复
热议问题