[Chartjs]-Chart.js unwanted canvas resizing

1👍

Presumably the option you need is devicePixelRatio, which will:

Override the window’s default devicePixelRatio.

I’ve not tested it, and the documentation isn’t 100% clear, but I assume this goes in the root of the options object:

options: {
  devicePixelRatio: 1
}

Leave a comment