Skip to content
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

responsive leads to empty chart #5799

Closed
punkratz312 opened this issue Oct 29, 2018 · 4 comments
Closed

responsive leads to empty chart #5799

punkratz312 opened this issue Oct 29, 2018 · 4 comments

Comments

@punkratz312
Copy link

creating a chart the exact same way like in the example (https://codepen.io/chartjs/pen/YVWZbz) leads to an empty chart:
image

Element:
image

Chart creation:
image

@simonbrunel
Copy link
Member

@punkratz312 please provide a jsfiddle (or similar) that demonstrates your issue.

@simonbrunel
Copy link
Member

@punkratz312 any update on your issue?

@etimberg
Copy link
Member

@punkratz312 based on your screenshot, I believe the issue is likely polymer related. I would ensure that the chart container div has a size.

@simonbrunel
Copy link
Member

@etimberg is right, since you set maintainAspectRatio: false, your chart will be resized to its parent container height, which is certainly 0. However, responsive: true doesn't work for chart in shadow DOM (which is your case).

Closing this issue as duplicate of #5763.

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

No branches or pull requests

3 participants