Canvas width/height not updating on internet explorer

0👍

Solved. Apparently it is due to the fact that ng-if actually removes the canvas from the html so, when updating the graph with new data, it somewhat does not update the size.
I created a style with

visibility:hidden;

in it and used the ng-class construct to actually just hide the canvas without actually removing it.

<div ng-class="visible==true ? 'chart-container' : 'chart-hidden'>
  <canvas .../>
</div>

Leave a comment