Chartjs-ChartJS – Injecting data from the server-side

1πŸ‘

βœ…

The pug file is fine, you only have to make some changes to your chart_price.js file, make a request to the server via ajax, and in your server file, instead of rendering the file, read the file content and use
res.send(//your json data).

Leave a comment