I want to create a pie, using Highcharts.
The data are provided in a json format :
Here's the lines of my script :
function myPie(d){
console.log(d);
chart = new Highcharts.Chart({
...
series: [{
type: 'pie',
name: 'Test',
innerSize: '80%',
data: d
}
]
...
});
The response at the console is Object { p0: "0.232697", p1: "0.259336", p2: "0.298506", p3: "0.177095", p4: "0.0323651" }
And I get nothing
What's wrong ?
How can I solve this problem.
Thanks for help.
No comments:
Post a Comment