You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The react-chartjs-2set 200 to width and height of the canvas by default.
A W3C document define them 300 and 150 as default value.
The width attribute defaults to 300, and the height attribute defaults to 150.
The Chart.js is not set width and height of the canvas by default.
As a result, the aspect ratio of the canvas is 2.
But the react-chartjs-2 is set 1 to the aspect ratio of the canvas.
I am confused by this.
The text was updated successfully, but these errors were encountered:
The
react-chartjs-2
set 200 to width and height of the canvas by default.A W3C document define them 300 and 150 as default value.
The Chart.js is not set width and height of the canvas by default.
As a result, the aspect ratio of the canvas is 2.
But the
react-chartjs-2
is set 1 to the aspect ratio of the canvas.I am confused by this.
The text was updated successfully, but these errors were encountered: