score:1
Accepted answer
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)
.
Source: stackoverflow.com
Related Query
- ChartJS - Injecting data from the server-side
- Why is my data on chartjs not starting from the data that it should
- chartjs how to update dynamically data from database(Chartjs cant get the data)
- Using number/text input field to set the data values in ChartJs stops the chart from being displayed
- To display data from mock server into chartjs using ember
- Sql Server query that returns prices from each shop on each date and adds a 0 if no data is present for the shopId on a particular date
- How to start the chart from specific time and offest hour and then show the data on chart from target datetime in chartjs
- Calling data from outside of Chartjs code
- Update data from server for ChartJS graph
- Chartjs - How to update the data from values in my database?
- ChartJS - Returning labels and data from server on different calls
- Live update the charts.js graph on a web page using json data received from a remote server
- how do i use the numbers i key in from a form as the input data for chartjs
- Chartjs random colors for each part of pie chart with data dynamically from database
- React ChartJS prevent new data from being added into state after it's redrawn?
- Chartjs 2.7.3: Set Y data at the correct X position axis
- React ChartJS 2 : Get data on clicking the chart
- Side effects from Chartjs for only *some* clients
- Filter ChartJS using data from PHP
- Chart.js – how to remove data entries from the tooltip?
- ChartJS (React) Line Chart - How to show single tooltip with data and labels from 3 (multiple) dataset?
- Charts.js - Need to remove the data value from the Tooltip
- How to create chartjs chart with data from database C#
- How do I add time sourced from an external source as an X axis to a ChartJS graph?
- chartJS label on each side of the chart
- I can't add data to chartjs from codeigniter
- How can I load multiple Chartjs charts with different data on the same page?
- Chartjs not working with d3 from csv source
- how can i send a list of numbers from views.py to a chartjs file im using for the front?
- How do I customize y-axis labels and randomly pick the value from the data range for x-axis in Chart js
More Query from same tag
- Create ticks at certain time positions on a chartjs cartesian time axis
- Resize pie chart from chart.js
- Add Extra label in a pie chart
- Chart JS - Use time for xAxes
- Chart js doesn't show chart
- Display image on bar chart.js along with label (chartjs-plugin-datalabels)
- How to manipulate different charts by angular
- How to hide the tick marks of the axis in react-chartjs-2
- Set Animation speed - ChartJS?
- How to get percentage from data collected in ChartJS?
- ChartJS distinguish clicks between chart area, dataset and legend
- Chart.js shows no graphs
- ChartJS in Datatable cell performance
- ChartJs chart won't update new values
- Implementing Charts.js in Laravel 5.1
- node js mysql query result rendered to chart.js labels in pug page
- Charts not showing on ASP.NET MVC page
- Chart.js on web-app
- Annotation plugin not working with Chart.js 2.8.0
- Chart.js: How can a line series (out of many) change line color and thickness upon mouse hover?
- How do I remove left-hand numeric values in Bar Chartjs?
- Chartjs / ng2-charts line on hover does not work
- Bootstrap 3 tabs & Chart.js - charts not loading on tabs
- Send data from a form to another component of the same level -angular
- How to import a doughnut Chart using Chart JS for Blazor?
- copy object in Chart.js
- Chart.js . ASP . Legend Template
- How to pass dynamic string as dataset in charts.js
- Unable to Construct Stacked Vue-ChartJS Line Plot
- Do I need a new dataset each time that I filter by a new date range in Charts.js?