title: Dynamic jSON into Highcharts Pie Chart
body: <p>I'm fighting with Highcharts right now trying to get data into it.  If I hard-code the options and series, I can get it to work - so it's not my configuration (i.e. scripts, css, etc.)</p>
  
  <p>I looked at the following question here on SO as it was related: <a href="https://stackoverflow.com/questions/6646001/ajax-json-in-to-highcharts-pie-chart">Ajax JSON in to Highcharts Pie Chart</a></p>
  
  <p>Unfortunately, it didn't help.  Can someone take a look and see what it is that I'm doing wrong?</p>
  
  <p>(This code is directly related to the previously-mentioned SO post)</p>
  
  <pre><code>function renderChart(divId, chartType, chartTitle){
      var options = createOption(divId, chartType, chartTitle);
      var series = createSeries();
      options.series = series;    
      var chart = new Highcharts.Chart(options);
  }
  
  function createOption(divId, chartType, chartTitle){
      var options = {
          chart: {
              renderTo: divId,
              defaultSeriesType: 'pie'
          },
          title: {
              text: chartTitle
          },
          plotOptions: {
              pie: {
                  allowPointSelect: true,
                  cursor: 'pointer',
                  dataLabels: {
                      enabled: false
                  },
                  showInLegend: true
              }
          },
          series: []
          };
          return options; 
  }
  
  function createSeries(){
      var series = [];
      series.push('[');
      series.push('{');
      series.push('"type" : "pie",');
      series.push('"name" : "fruits",');
      series.push('"data" : [');
      series.push('[');
      series.push('"Apple",')
      series.push('43.0');
      series.push('],');
      series.push('[');
      series.push('"Pear",')
      series.push('57.0');
      series.push(']');
      series.push(']');
      series.push('}');
      series.push(']');
      return series.join('');
  }
  </code></pre>
  
  <p>Thanks in advance.</p>
  
  <p>Disregard.  Easiest way - have the server cook up the series object.  See this post: <a href="https://stackoverflow.com/questions/5432640/iterate-json-response-with-jquery-for-highcharts">iterate JSON response with jQuery for Highcharts</a></p>