title: HighCharts reading from CSV basic example
body: <p>Am new to highcharts and JS and am trying to plot data from a csv file (data3.csv).</p>
  
  <p>Here is the code at the moment:</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
          &lt;title&gt;Highcharts Example&lt;/title&gt;
  
  
          &lt;!-- 1. Add these JavaScript inclusions in the head of your page --&gt;
          &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="highcharts.js"&gt;&lt;/script&gt;
          &lt;!--[if IE]&gt;
              &lt;script type="text/javascript" src="../js/excanvas.compiled.js"&gt;&lt;/script&gt;
          &lt;![endif]--&gt;
  
  
          &lt;!-- 2. Add the JavaScript to initialize the chart on document ready --&gt;
          &lt;script type="text/javascript"&gt;
          $(document).ready(function() {
  
  
              var options = {
                  chart: {
                      renderTo: 'container',
                      defaultSeriesType: 'line'
                  },
                  title: {
                      text: 'Stock Chart'
                  },
                  xAxis: {
                      categories: []
                  },
                  yAxis: {
                      title: {
                          text: 'Price'
                      }
                  },
                  series: []
              };
  
              $.get('data3.csv', function(data) {
  
                  $.each(lines, function(lineNo, line) {
                  var items = line.split(',');
  
                  var series = {
                      data: []
                  };
  
                  $.each(items, function(itemNo, item) {
                      if (itemNo == 0) {
                          series.name = item;
                      } else {
                          series.data.push(parseFloat(item));
                      }
                  });
  
                  options.series.push(series);
  
                  });
  
                  var chart = new Highcharts.Chart(options);
              });
          });
  
          &lt;/script&gt;
  
      &lt;/head&gt;
      &lt;body&gt;
  
          &lt;!-- 3. Add the container --&gt;
          &lt;div id="container" style="width: 800px; height: 400px; margin: 0 auto"&gt;&lt;/div&gt;
  
  
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And the contents of the csv file are:</p>
  
  <pre><code>Date    Open
  29/01/2010  538.49
  28/01/2010  544.49
  27/01/2010  541.27
  26/01/2010  537.97
  25/01/2010  546.59
  </code></pre>
  
  <p>However, this is not giving a chart (just gives the title).</p>
  
  <p>Could anyone suggest where I am going wrong?</p>
  
  <p>Thanks</p>