How to make your first JavaScript chart with JSCharting

Hello. I completed this tutorial (How to make your first JavaScript chart with JSCharting) up to Step 2. When I refreshed my browser to view the bar chart, I got a “spinning ball”. I opened Chrome Developer Tools, and there is an error in jscharting.js : Uncaught TypeError: 1.indexOf is not a function. I Googled this issue and didn’t see anyone else who experienced this. Screenshot below. Am I doing something wrong here?

Thanks for your help. :slightly_smiling_face:

We need to see your code, not the library code.

Without code, all we can do is help you interpret the error. It looks like somewhere you called indexofon a number instead of an array. Perhaps you called it on the index of an array by accident?

Thank you. I’ll look into that.