score:2

Accepted answer

The problem: I was calling the function before the canvas be loaded on the view, so I used a setTimeout() to call the writeBatteryChart() with a delay in order to wait the canvas be rendered.

score:0

You have to add your rendered things inside of canvas. Hope it will help Link


Related Query

More Query from same tag