Skip to content

Instantly share code, notes, and snippets.

@typpo
Last active June 14, 2019 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save typpo/ee3cb19ae5a50796188b0cc76d43edfb to your computer and use it in GitHub Desktop.
Save typpo/ee3cb19ae5a50796188b0cc76d43edfb to your computer and use it in GitHub Desktop.
Chart.js without gridlines
{
type: 'bar',
data: {
labels: ['January', 'February', 'March', 'April', 'May'],
datasets: [{
label: 'Dogs',
data: [ 50, 60, 70, 180, 190 ]
}, {
label: 'Cats',
data: [ 100, 200, 300, 400, 500 ]
}]
},
options: {
scales: {
xAxes: [{gridLines: {display: false}}],
yAxes: [{gridLines: {display: false}}],
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment