score:2

Accepted answer

solved it (sort of). when i downgrade to chart.js 2.8.0 the chart borders now display as expected. with 2.9.3 the borders were not showing at all, regardless of chart type.

score:3

gridlines: { drawborder: true, linewidth: 0 }

score:3

you can put this options in gridline properties:

xaxes: [{
        gridlines: {
          display: true,
          drawborder: true,
          drawonchartarea: false
        }
     }]

source: https://www.chartjs.org/samples/latest/scales/gridlines-display.html


Related Query

More Query from same tag