Chartist-js: Hide Grid Scale

Created on 30 Jun 2017  路  2Comments  路  Source: gionkunz/chartist-js

Hi guys, sorry if I've missed this is the documentation. Is there a method to turn off the grid scale and it's labels on a bar chart?

I've been able to hide them in the css using .ct-grid { stroke: white;} but I didn't know if there was a configuration setting that I'd missed.

Most helpful comment

Ah, I came across this same obstacle just a few days ago. I solved it by adding the following to the options for my chart:

axisX: {
    showGrid: false,
    showLabel: false
},
axisY: {
    showGrid: false,
    showLabel: false
},

All 2 comments

Ah, I came across this same obstacle just a few days ago. I solved it by adding the following to the options for my chart:

axisX: {
    showGrid: false,
    showLabel: false
},
axisY: {
    showGrid: false,
    showLabel: false
},

Oh awesome, thanks!

Was this page helpful?
0 / 5 - 0 ratings