title: Creating highchart piechart with a javascript object
body: <p>I am using highchart to create a graph. I have a javsascript object like this </p>
  
  <pre><code>test1:38
  test2:2
  test3:160
  </code></pre>
  
  <p>I want to create a piechart with the values of this object something like this</p>
  
  <pre><code>series: [{
  
            name: 'Success',
            data: [
            {name:"test1", y:1},
           {name:"test2", y:38},
           {name:"test3", y:k},]
  }]
  </code></pre>
  
  <p>How can I create the data array like this using my javascript object.I am new to javascript so any help would be appreciated.</p>