title: how to create highcharts using data.csv file
body: <p>hi i have created a 'data.csv' file and now i want to create a highchart using the contents of that data.csv file. contents of my csv file are:</p>
  
  <pre><code>    2011-08-01 00:00:00,155
      2011-08-02 00:00:00,156
      2011-08-03 00:00:00,157
      2011-08-03 00:00:00,160
  </code></pre>
  
  <p>now i have written a javascript code to render the data and create a highchart, but it is showing nothing on my webpage. my code is</p>
  
  <pre><code>        $(document).ready(function() {
  
      var options = {
              chart: {
                  renderTo: 'chart',
                  defaultSeriesType: 'line',
                  marginRight: 130,
                  marginBottom: 25
              },
              title: {
                  text: 'reading',
                  x: -20      //center
              },
              xAxis: {
                  title: {
                      text: 'Date Measurement'
                  },
                  categories: []
              },
              yAxis: {
                  title: {
                      text: 'reading'
                  }
              },
              series: []
      };
  
      $.get('C:/Program Files (x86)/Zend/Apache2/htdocs/myproject/public/data.csv', function(data) {
  
          // Split the lines using newline '\n' as delimiter
          var lines = data.split('\n');
  
          $.each(lines, function(lineNo, line) {
  
              // split the line elements using comma ',' as delimiter
              var items = line.split(',');
  
              $.each (items, function(itemNo, item) {
                  if(itemNo == 0)
                      options.xAxis.categories.push(item);
                  else if(itemNo &gt; 0) {
                      var series = {
                              data: []
                      };
                      series.data.push(parseFloat(item));
                  };
                  options.series.push(series);
              });
              var chart = new HighCharts.Chart(options);
          });
      });
  
  });
  </code></pre>
  
  <p>i don't know if i am doing something wrong. any help would be great. thanks.</p>