title: Creating a chart in HTML5 with Charts.js
body: <p>I want to draw a line chart with Chart.js, I followed the 'Getting started' section of Chart.js but I still am not able to draw even the example chart. What is wrong with my code? According to NetBeans it's all ok ..</p>
  
  <p>Here's the code:</p>
  
  <pre><code>&lt;!doctype html&gt;
      &lt;html lang="nl"&gt;
          &lt;head&gt;
              &lt;meta charset="utf-8"&gt;
              &lt;title&gt;Become a member&lt;/title&gt;
              &lt;script type="text/javascript" src="Chart.js"&gt;&lt;/script&gt;
       &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt;
          &lt;/head&gt;
  
          &lt;body&gt;
              &lt;script type="text/javascript"&gt;
  
                  window.onLoad = function() {
                      init();
                  };
  
                  function init() {
                      var ctx = $("#myChart").get(0).getContext("2d");
                      var myNewChart = new Chart(ctx).Line(data, options);
  
                      var data = {
                          labels: ["January", "February", "March", "April", "May", "June", "July"],
                          datasets: [
                              {
                                  fillColor: "rgba(220,220,220,0.5)",
                                  strokeColor: "rgba(220,220,220,1)",
                                  pointColor: "rgba(220,220,220,1)",
                                  pointStrokeColor: "#fff",
                                  data: [65, 59, 90, 81, 56, 55, 40]
                              },
                              {
                                  fillColor: "rgba(151,187,205,0.5)",
                                  strokeColor: "rgba(151,187,205,1)",
                                  pointColor: "rgba(151,187,205,1)",
                                  pointStrokeColor: "#fff",
                                  data: [28, 48, 40, 19, 96, 27, 100]
                              }
                          ]
                      }
                  }
  
              &lt;/script&gt;
              &lt;div&gt;
                  &lt;section&gt;
                      &lt;article&gt;
                          &lt;canvas id="myChart" width="400" height="400"&gt;
                          &lt;/canvas&gt;
                      &lt;/article&gt;
                  &lt;/section&gt;
              &lt;/div&gt;
          &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>Any help is more than welcome!</p>
  
  <p>Link to the plug-in -> <a href="http://www.chartjs.org/docs/">http://www.chartjs.org/docs/</a></p>
  
  <p>Kind regards</p>
  
  <p>Glenn</p>