[Chartjs]-Thicker X-Axis with Charts.js

2πŸ‘

βœ…

In your options, you can set the lineWidth option:

options: {
   scales: {
      xAxes: [{ 
        gridLines: { lineWidth: 50 },
     }]
  }
}

And the corresponding docs

1πŸ‘

for x-axis to be more thicker we set in yAxes gridLines this line
zeroLineWidth:2
for y-axis to be more thicker we set in xAxes gridlines this line
zeroLineWidth:2

documentation:

enter link description here

yAxes: [{           
 gridLines: {
    zeroLineWidth:2
}           
}],
 xAxes: [{
  gridLines: {
    zeroLineWidth:2
 }
}]

Leave a comment