Accepted answer

I was able to hardcode the size of the graph by turning off responsiveness:

options: {
  responsive: false


Using Both options, maintainAspectRatio: false AND responsive: false seem to do the trick of making the chart fit the canvas as sized in the canvas height and width tags.


I solved the problem by adding "maintainAspectRatio: false" to the options.

options : {
    maintainAspectRatio: false

Related Query

More Query from same tag