angular2-chartjs icon indicating copy to clipboard operation
angular2-chartjs copied to clipboard

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

Open RezaRahmati opened this issue 6 years ago • 3 comments

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 :(

RezaRahmati avatar Dec 15 '18 19:12 RezaRahmati

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

Would you mind to share some code?

juriadams avatar Jan 05 '19 15:01 juriadams

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

supermafete avatar Feb 24 '19 19:02 supermafete

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

thxmike avatar Sep 30 '19 21:09 thxmike