Canvas does not redraw on page reload

Found the solution in this post

basicly canvas needs to be called using elementref like so:

@ViewChild('myChart') canvas:ElementRef;

and then everything works fine.

1 Like