0👍
First in javascript an array is an object, to know if something is an array you should use Array.isArray(varName).
It looks like you get an empty array back because your query to get data returns nothing, I quickly pushed in a for loop some values to the array and it returns it fine so it must be your dataset which does not contain anything. Or your filters make it return nothing
- Chartjs-Trying to get minIndex and maxIndex from x-axis-0
- Chartjs-How to remove labels from ng2-chart(chart.js)
Source:stackexchange.com