score:7
Accepted answer
The error is occurring because, Object.values()
is not supported in Internet Explorer.
see browser compatibility for Object.values()
Here is a workaround, that you could use instead ...
data: Object.keys(activeOrdered).map(function(key) {return activeOrdered[key];})
and ...
data: Object.keys(inactiveOrdered).map(function(key) {return inactiveOrdered[key];})
Source: stackoverflow.com
Related Query
- SCRIPT438: Object doesn't support property or method 'values'
- How to write better code in es6 for formatting an object with array values
- Angular / ng2-charts: Fetching json data in chart object showing: Cannot read property 'length' of undefined
- Error in compilation for chart.js Expected method shorthand in object literal ('{label() {...}}'
- Uncaught TypeError: Cannot read property 'draw' of undefined for object scale
- bind first property value of an array of object into chart.js
- Error: Cannot read property 'props' of undefined, Calling parent Method in Child
- How to use computed property with data from JSON in data object for time axis in Vue using Chart.js
- how can i grab a property from an array of JSON objects to use the values of that property as a labels in my chart?
- Can I interpret Django object values as JSON data within the JS script in my HTML?
- How to run Chart.js samples using source code
- Parsing webserver JSON Values to data property
- ChartJS: call the property of an array object in the tooltip
- How to access custom property in dataset object in Bar Chart in React ChartJS 2?
- How to collect values of object properties into a list?
- Dynamically update values of a chartjs chart
- How to display data values on Chart.js
- Change the Y-axis values from real numbers to integers in Chart.js
- NG2-Charts Can't bind to 'datasets' since it isn't a known property of 'canvas'
- How to format x-axis time scale values in Chart.js v2
- Show values on top of bars in chart.js
- Property 'getContext' does not exist on type 'HTMLElement'
- Change color of X and Y axis values in Chart.js
- Chart.js Bar graph with percentage values
- Unable to draw method in Chart.js, v2 can't be found
- Chart Js Cannot read property 'length' of undefined
- Not drawing null values using chart.js
- Can't bind to 'data' since it isn't a known property of 'canvas'
- Uncaught TypeError: Cannot read property 'offsetWidth' of undefined - chart.js
- line chart with {x, y} point data displays only 2 values
More Query from same tag
- Chart Js + Angular
- Custom Legend ChartJS not showing the text decoration: line through
- Is it possible to keep the same width of the drawing surface when updaing chart.js linechart
- Chartjs React Typescript moving x axis labels above chart
- React-Chart.js : How do I increase the space between the legends and chart?
- How to fit Doughnut Chart JS into Bootstrap column?
- How to align multiple x axes in chart.js?
- Can't render two charts on the same page from chart.js
- Dynamic array javascript
- chart js how to fill legend box with colour
- Hiden Gridline in chart JS
- chartjs chart spilling out of container
- How to apply data dynamically on initialisation for chart.js in angular?
- Click event using Chart.js with AngularJS
- How to dynamically call function with a for loop within Chart.js (JS)
- Use JSON data in Chart.js chart
- chart data on 24hr X axis using recharts, chart.js, I don't mind what
- Chart js space above bar graph
- ChartJS show gaps in time data
- How can I add functionality to Chartjs Doughnut chart custom legend
- how can plot graph using json data
- Something similar to grace available in the latest chartJs for ChartJs 2.9.3
- How to define the Charts in the script?
- Chart.js - y axis custom label
- Chart.js Change color of the values *inside* the bars of a Bar chart
- chart.js stacked graph that overlaps
- how to align count text center in horizontal bar in the Chart.js?
- change legend in chart in report builder
- Save data from REST API Get method and use it one more time
- chart js - bar chart with time scale on Y axis in Hours and Minutes