score:18
Accepted answer
The data you're passing in is inconsistent with the docs
Could you try making datasets
an array?
Also, try providing static data initially to allow the chart to initialize with some mock data.
Source: stackoverflow.com
Related Query
- Uncaught TypeError: Cannot create property '_meta' on string
- Cannot create property 'datasets' on string
- Uncaught TypeError: Cannot read property 'offsetWidth' of undefined - chart.js
- ChartJS: Uncaught TypeError: Cannot read property 'call' of undefined
- Uncaught TypeError: Cannot read property 'draw' of undefined
- Uncaught TypeError: Cannot read property 'draw' of undefined : Angular chart js
- Chart JS Error : Uncaught TypeError: Cannot read property 'top' of undefined
- Uncaught TypeError: Cannot read property 'draw' of undefined for object scale
- Uncaught (in promise) TypeError: Cannot read property 'length' of undefined in chartjs with Vuejs
- Can't draw pie chart using chartjs - TypeError: Cannot create property '_meta' on number '16'
- Uncaught TypeError: Cannot read property 'format' of undefined
- js error: while trying to display graph using chart.js: Uncaught TypeError: Cannot read property 'call' of undefined
- Chart.js Line graph legend yields error: Uncaught TypeError: Cannot read property '0' of undefined
- Chart Js Cannot read property 'length' of undefined
- Chartjs cannot read property datasets of undefined
- TypeError: Cannot read property 'defaults' of undefined when using the react wrapper of chartjs
- Cannot read property 'labels' of undefined
- Chart.js Cannot read property 'fontSize' of undefined
- TypeError: Cannot read property 'legend' of undefined | Angular + ng2-charts
- TypeError: Cannot read property 'currentStyle' of null in chart.js
- Cannot read property 'transition' null chartjs
- error : "Uncaught TypeError: Cannot read property 'length' of null" Chart.js
- Ionic/Chart.js - Cannot read property 'nativeElement' of undefined
- chartjs - multi axis line chart - cannot read property 'min' of undefined
- TypeError Not reading property correctly
- Updating Chart.js with JSON, cannot read property 'length' of undefined
- chartjs & asp.net: Cannot read property 'labels' of undefined
- Cannot create chart on react element
- Angular / ng2-charts: Fetching json data in chart object showing: Cannot read property 'length' of undefined
- Error in created hook (Promise/async): "TypeError: Cannot read property 'position' of undefined"
More Query from same tag
- How to make y axis only integer scaling in ChartJS?
- How to display label on side of doughnut in chart js
- Chart.js Bar chart resizes again when revisiting the tab
- Removing chart on click event produces 'removeHoverStyle' of null error
- How to change axis font in PrimeFaces and Chart.js
- Chart.js Version 3: how to set the different color for tick lines and gridlines
- How to get x-axis value in chart as string?
- Single Stacked bar with three sections in Angular
- Chart.js Example Isn't working
- How to hide more than one legend on Chartjs?
- Vue 2: How to unit test component that uses Chart.js (vue-chart-3)
- How to add a vertical line on Chart.js when hover a point?
- ChartJS remove vertical grid lines one on two
- How to hide labels by two ticks? chartjs
- How to draw horizontal Lines using chart.js 3.x ? Cannot get it working
- Get last 6 month name in Array for Chartjs
- (MVC) Is this an efficient way of displaying chart data by date?
- Chart.js - make background text responsive
- How can I display the percentage symbol inside the chartjs?
- chart.js My DATA doesn't go along with the label,
- Angular-Chart.js it doesn't display the chart
- UnCaught IndexSizeError: ChartJS
- Adding additional properties to a Chart JS dataset
- chart.js: issue with concatening two line charts
- Cannot read property 'getElementAtEvent' of undefined, Typescript
- ChartJS Realtime Animation
- White space at start and end of data with time scale in chart.js
- vb.net string to chartjs data field?
- Why can't I use a variable in same function scope in Javascript?
- ReferenceError: Chart is not defined with primeNg and angular 4