Chartjs-How to load a chart in a diferent page

1👍

What I’ll do is to refactor that graph as a component itself, so it could be reused everywhere easily.
Just declare a component with the logic you already have, and use
<canvas id="canvas">{{test}}</canvas>

as component’s template

Leave a comment