diff --git a/src/helpers/helpers.dom.ts b/src/helpers/helpers.dom.ts index b4d976864..ce1d1a045 100644 --- a/src/helpers/helpers.dom.ts +++ b/src/helpers/helpers.dom.ts @@ -222,6 +222,9 @@ export function retinaScale( const deviceHeight = Math.floor(chart.height * pixelRatio); const deviceWidth = Math.floor(chart.width * pixelRatio); + chart.height = deviceHeight / pixelRatio; + chart.width = deviceWidth / pixelRatio; + const canvas = chart.canvas; // If no style has been set on the canvas, the render size is used as display size,