title: jQuery dollar sign is undefined
body: <p>In my quest to get historical information, i tried using the below code. Chrome debugger says that <code>Uncaught ReferenceError: $ is not defined</code>. Can you suggest a fix, i'm really stuck. I just need this to work on Chrome, and I am tapping into YQL and Yahoo API.</p>
  
  <p>here is the jsFiddle <a href="http://jsfiddle.net/pCK5q/1/" rel="noreferrer">http://jsfiddle.net/pCK5q/1/</a></p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;      
      &lt;script type='text/javascript' src='http://www.google.com/jsapi'&gt;&lt;/script&gt;
      &lt;script type='text/javascript'&gt;
        google.load('visualization', '1', {'packages':['annotatedtimeline']});
        google.setOnLoadCallback(drawChart);
        function drawChart() {
          var data = new google.visualization.DataTable();
  
          /* historical data code that breaks */
          var url = 'http://query.yahooapis.com/v1/public/yql';
          var startDate = '2012-01-01';
          var endDate = '2012-01-08';
          var jsonData = encodeURIComponent('select * from yahoo.finance.historicaldata where symbol in ("YHOO","AAPL","GOOG","MSFT") and startDate = "' + startDate + '" and endDate = "' + endDate + '"');
          $.getJSON(url, 'q=' + data + "&amp;env=http%3A%2F%2Fdatatables.org%2Falltables.env&amp;format=json", callback);
  
          data.addColumn('date', 'Date');
          data.addColumn('number', 'Sold Pencils');
          data.addColumn('string', 'title1');
          data.addColumn('string', 'text1');
  
          data.addColumn('number', 'Sold Pens');
          data.addColumn('string', 'title2');
          data.addColumn('string', 'text2');      // not on the fly
  
  
          data.addRows([
            [new Date(2008, 1 ,1), 30000, undefined, undefined, 40645, undefined, undefined],
            [new Date(2008, 1 ,2), 14045, undefined, undefined, 20374, undefined, undefined],
            [new Date(2008, 1 ,3), 55022, undefined, undefined, 50766, undefined, undefined],
            [new Date(2008, 1 ,4), 75284, undefined, undefined, 14334, 'Out of Stock','Ran out of stock on pens at 4pm'],
            [new Date(2008, 1 ,5), 41476, 'Bought Pens','Bought 200k pens', 66467, undefined, undefined],
            [new Date(2008, 1 ,6), 33322, undefined, undefined, 39463, undefined, undefined]
          ]);
  
          var chart = new google.visualization.AnnotatedTimeLine(document.getElementById('chart_div'));
          chart.draw(data, {displayAnnotations: true});
        }
      &lt;/script&gt;
    &lt;/head&gt;
  
    &lt;body&gt;
      // Note how you must specify the size of the container element explicitly!
      &lt;div id='chart_div' style='width: 700px; height: 240px;'&gt;&lt;/div&gt;
  
    &lt;/body&gt;
  </code></pre>