TypeError: b.normalized[g].forEach is not a function
See original GitHub issueTrying out Chartist by cloning master branch and using *.min.js and *.min.css in my code, while following http://gionkunz.github.io/chartist-js/getting-started.html . And I get the error
TypeError: b.normalized[g].forEach is not a function
Reproduced on Safari/Firefox/Chrome.
What am I doing wrong?
Issue Analytics
- State:
- Created 8 years ago
- Comments:6
Top Results From Across the Web
I am getting TypeError saying forEach is not a function?
I think the issue is related to javascript/reactjs and not chartist.js ... which is something like data.normalized[seriesIndex].forEach is ...
Read more >TypeError: forEach is not a function in JavaScript
The "TypeError: forEach is not a function" error is thrown when the code attempts to call the forEach() method on a value that...
Read more >How to fix TypeError: forEach is not a function in JavaScript?
TypeError occurs when we try to access a method or a property from a variable whose type does not have that method or...
Read more >4.2 "TypeError: arrayName.forEach is not a function"
I passed the exercise with the following, without forEach: String.prototype.rotate = function(n) { // n is an integer n %= this.length; ...
Read more >TypeError: moduleDecl.body.body.forEach is not a function ...
Hi! I have a strange error TypeError: moduleDecl.body.body.forEach is not a function Occurred while linting ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i managed to stumble on this issue too.
it happens, if the chart series is a 1-dimensional array instead of a two-dimensional one
here’s a codepen with the error: http://codepen.io/laxis/pen/eNxaJJ?editors=001
jsbin: http://jsbin.com/vebegeyeki/1/edit?html,js,console,output debugger screenshot:
hope it helps 😃
Thanks for reproducting on jsbin! This make things a lot easier 😃
Series should always be an array of arrays! It’s an array of data series.
http://jsbin.com/cuxama/edit?html,js,console,output
Cheers Gion