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

Charts doesn't show when using it inside angular material cards (mat-card) #46

Open
RezaRahmati opened this issue Dec 15, 2018 · 3 comments

Comments

@RezaRahmati
Copy link

I just added the angular2-chartjs into my project, I copy pasted the sample, and wasn't showing anything (container and canvas had width and height 0)

Then I found out that it's because I added the chart inside an angular material card :(

@juriadams
Copy link

juriadams commented Jan 5, 2019

It's working absolutely fine for me! Here's an example:

Would you mind to share some code?

@supermafete
Copy link

Try to remove any divs encapsulating your chart or your card. It worked for me.

@thxmike
Copy link

thxmike commented Sep 30, 2019

I have this same issue. I have a radar chart that will not show up. I have tried playing with different CSS settings and with and without divs, It does not make a difference

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

4 participants