score:2
Accepted answer
2 things that seems that can be the issue in my eyes.
First one if orders
is already an array you should remove the wrapping array brakcets when passing it to the data like so:
data: orders;
If what is in orders is a big string of numbers seperated by ,
you have to make it an array chart.js understands instead of an array with 1 big string like so:
data: orders.split(',');
Source: stackoverflow.com
Related Query
- Adding object data to data structure of chart.js chart does not show any data
- Adding new data to empty Chart.js chart does not render new data correctly
- Chart looks only grey, does not show the color - Chartjs,discordjs
- ChartJS: chart not show all data
- ChartJs Memory Leak | Garbage Collection does not clean Chart Object or Arrays after render
- Angular6 and ng2-charts does not display any charts when i fill data from webservice
- Bar chart (chart.js) with only 2 points does not show one of the bars
- Chart.js line chart does not render data lines on iOS
- Chart.js does not display any data
- Is there any way to show a tooltip for points which are not visible on the chart in Chart.js?
- Chart.js returns a console error and does not display the chart when using variables as data input
- Background color does not work when trying to create my data before using scatter chart with chart.js
- Trying to call API and plot a line chart but it does not show
- Angular ChartJs does not show Data for multiple Charts
- Why scatter chart does not show axes?
- The data that is called in chart does not match the database
- show label in tooltip but not in x axis for chartjs line chart
- chart js tooltip how to control the data that show
- Html chart does not fit a small Android WebView
- Chart JS show multiple data points for the same label
- Angular-chart.js - Make line chart does not curve
- Show data dynamically in line chart - ChartJS
- Chart Js Show the old data on mouse hover
- Chart.js Chart in Angular does not load until resizing browser window
- Show "No Data" message for Pie chart with no data
- Show data on top of bar chart in Chart.js v 2.7.1
- How to show data values in top of bar chart and line chart in chart.js 3
- ChartJS (React) Line Chart - How to show single tooltip with data and labels from 3 (multiple) dataset?
- Chart not displaying from JSON data
- Angular chart how to show the legend data value by default along with legend name
More Query from same tag
- ChartJS: Two Titles for positive and negative part of y axis
- Formatting Chart.js Chart
- chart js chart bar chart not showing data from 0
- Create chart in SPA(Aurelia) with MVVM pattern
- using ajax populate dynamic piechart from chartjs
- How to get chart from data points (arrays) with inconsistent time intervals and chart.js?
- How to line break a label object in ChartsJS (nested arrays won't work)
- How to remove the unnecessary overlaying gridlines using Chart.js?
- The chart doesn't display the data from my call to the API with Axios
- Chart.js changing the color of the max value bar
- I can't change the legend position in Laravel Charts & ChartJS
- How to group smaller Pie Chart slices together to Improve Readability in chartjs
- Using zoom/pan with ChartJS
- How to remove a vertical line from the canvas of react-chartjs-2?
- JavaScript function based on counter
- How to put images/ charts into table?
- How to update chart.js using Javascript
- Chart.js - Datalabels not showing using formatter
- Laravel - How to Display both count and percentage (%) in chartjs pie chart
- Alter angular js chart wrapper to support drawing custom lines
- Chart.js runs in JSFiddle but not local "Chart is not defined"
- How to ignore same values on ChartJs?
- How can I show "No Data" message in Pie Chart when there is no data using VueJS?
- (Chart.js) Is there a way to compare one chart with another so as not to have this inconsistent effect of small values being as big as big values?
- How to display a progress over time in one horizontally stacked bar with chartjs
- How can i reformat dates
- chartjs - bar graphs size not increasing
- How to set up an initial Zoom value for a chart (ChartJS + ChartJS Zoom plugin)?
- Cannot change font color and box width in chart
- Is there any way to change the font size of labels in bar chart in Chart.js v3?