HighCharts Pie Test

Attempting to get data to pie from table

by KarmaProd

HTML

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

JavaScript

var chart;
point = null;
$(document).ready(function () {

    var data = [{ name: 'One', y: 10, id: 22 },{ name: 'Two', y: 10, id: 33 }];
    
    chart = new Highcharts.Chart(
    {
       series:[
          {
             "data": data,
              type: 'pie',
              animation: false,
              point:{
                  events:{
                      click: function (event) {
                          alert(this.id);
                      }
                  }
              }          
          }
       ],
       "chart":{
          "renderTo":"container"
       },
    });
});