Wednesday, 29 June 2016

Draw a pie chart with Highcharts with datas error

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

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...