title: ChartJS creating var takes each character and outputs undefined
body: <p>I am creating a simple bar chart for my work. I use Python and Pandas for the same. Since I need this for HTML, I am using ChartJS. Below is my piece of code:</p>
  
  <pre><code>success: function(data) {
          console.log(data);
          var n = [];
          var s = [];
  
          for(var i in data) {
              n.push(data[i].name);
              s.push(data[i].score);
          }
  </code></pre>
  
  <p>My data is as below and correctly renders in the console log:</p>
  
  <pre><code>[{"name":"ajay","score":"80"},{"name":"smitha","score":"90"},{"name":"ravi","score":"95"}]
  </code></pre>
  
  <p>Now, when I run the for loop above, it picks up each character from the data and outputs it as undefined in the labels. My question is, why isn't it actually picking up the name and score data, for example, ajay and 80 for inputting in variables n and s? </p>
  
  <p>I would really appreciate your response if you help me in understanding the root cause. Why is it not reading the entire name, ajay, and instead throwing 90 undefined labels (90 characters in total)?</p>