Chartjs-How to dynamically add data to chart js line graph on vue upon form submission?

0๐Ÿ‘

โœ…

I think a reasonable solution here is to observe props change in ChartTest component. Firstly, create chart instance (const chart = new Chart(....)). Every time chart data changes, you should call chart.update() to update the chart.

Follow this thread to know how to observe props change .

Leave a comment