Ionic and Canvas.js bug

Hi all,

So, I was using doughnut chart in my Ionic app, and I wanted to disable expanding on click, so I found in docs that explodeOnClick:false handles that.

I ran through theirs examples, I see its all working fine, however, with Ionic, the false just doesn’t work – the parts just keep exploding on click every time.

So, this code is working here https://jsfiddle.net/mowxurrf/

But with Ionic - it isn’t…

Any idea whats this about?

This is how Im rendering chart i ang/ionic

codeshare.io/marko-canvasjs

Fixed.

The problem was I was using npm canvas JS package cause I wanted es import

I switched to the way this example was done
https://drive.google.com/file/d/0B99Bj9d1KsmHVmZzemJoZVdiMWc/view

All working now

2 Likes

Perfect. I solved my ionic 3 project issue.
Thanks.