Charts with react ionic

I’m trying to figure out how to includes charts with react ionic.

for some reason when i try to render a chart I get errors:

Uncaught Error: Canvas is already in use. Chart with ID ‘0’ must be destroyed before the canvas with ID ‘’ can be reused.
core.registry.js:178 Uncaught Error: “category” is not a registered scale.

does anyone knows how to fix it so it would work with charts?

1 Like

I’ve found a solution for this issue:

solution

2 Likes

Thanks for updating the post and for sharing the solution you found with others!