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