jtblin / angular-chart.js

Reactive, responsive, beautiful charts for AngularJS using Chart.js: http://jtblin.github.io/angular-chart.js
Other
2.67k stars 759 forks source link

fluid md-card with an chart only display when window resize #208

Open ricardobfa opened 9 years ago

ricardobfa commented 9 years ago

I'm using angular material md-grid-list and md-card to display some charts inside of it.

When i set the md-card to 100% height and width , the canvas chart appears to be with height and width = 0px.

To make the chart appear, you need to resize the window.

What i'm missing?

Plunker demo

schneidermarc commented 8 years ago

same issue

ghost commented 8 years ago

+1 Same issue here

ghost commented 8 years ago

I managed to get this working by setting a timeout on initialising the arrays. I updated your Plunker: http://plnkr.co/edit/bIWoTa9h25qmUOpGrtab?p=preview