Highcharts test tool

by grant

HTML

<script src="http://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 300px"></div>

JavaScript

data = [
{
"name": "weeds",
"data": 233
},
{
"name": "corn",
"data": 1
},
{
"name": "willows",
"data": 29
},
{
"name": "trees",
"data": 0
}
];

// Highcharts requires the y option to be set
$.each(data, function (i, point) {
    point.y = point.data;
});


Highcharts.chart('container', {
    chart: {
        
        type: 'pie'
    },

    series: [{
        data: data
    }]

});