Open rocramer opened 7 years ago
Hi, might not be relevant, but I get exactly the same (=nothing) with Google maps. But I hadn't tried it before anyway....
I'm not sure why, but having an otherwise pointless extra div
around the canvas makes it work for me.
This works:
<div class="chart">
<div>
<canvas id="canvas" height="640" width="640"></canvas>
</div>
</div>
This doesn't:
<div class="chart">
<canvas id="canvas" height="640" width="640"></canvas>
</div>
To make it weirder, it depends on what CSS attributes I have on chart
. Sometimes the second pattern will work. I haven't found a case where the first one doesn't regardless of CSS.
I tried to use chartjs.dart with AngularDart. I added chartjs.dart as a dependency and put the chart.js in the header of my index.html. Then I wrapped your example in a component:
Unfortunately the chart doesn't render. There are no errors in the console. Is there a known issue with using chartjs.dart and Angular2 together?