Skip to content

Default values of width and height are different from default values of the canvas element on the w3c document #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ledsun opened this issue Jul 31, 2016 · 1 comment

Comments

@ledsun
Copy link

ledsun commented Jul 31, 2016

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 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.

@gor181 gor181 closed this as completed in 092ca5e Aug 6, 2016
@gor181
Copy link
Collaborator

gor181 commented Aug 6, 2016

Hey @ledsun ,

Thanks for reporting, should be sorted now.
Appreciate your time.

Goran

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants