Hi,
I have tried several options in order to draw grid lines to ease the reading of my bar chart.
Currently i have this:
but i would like to get that:
with the horizontal lines
I tried
gridLines
beginAtZero
etc..
but can't find the option parameter to do so.
Thank you for your help
It's in the scale object.
const options = {
scales: {
yAxes: [{
ticks: {
beginAtZero: true
},
gridLines: {
display: false
}
}],
xAxes: [ {
gridLines: {
display: true
},
}]
}
}
where did you put that peice of code? thanks
It is the second argument you pass to this.renderChart(data, options)
Most helpful comment
It's in the scale object.