title: How to display data when using Rickshaw.Graph.Ajax
body: <p>1.) How can I access the data using new Rickshaw.Graph.Ajax? My complete code is below, including a sample set of the JSON that is being called via AJAX:</p>
  
  <pre><code>(function(){
      var ajaxGraph = new Rickshaw.Graph.Ajax( {
          element: document.getElementById("chart"),
          width: 400,
          height: 200,
          renderer: 'line',
          dataURL: '/data.json',
          onData: function(data) {
              var arrData = [];
              $.each(data[0], function(i, l){
                  var rawData = l.data;
                  arrData.push(rawData);
                  return arrData;
              });
  
          }
      } );
  
  })();
  </code></pre>
  
  <p>//JSON SAMPLE</p>
  
  <pre><code>[{
      "took": 32,
      "total": 34200,
      "strokeVolume_count": {
          "name": "strokeVolume_count",
          "data": [
              {"x": 1387130400000,"y": 1800},
              {"x": 1387134000000,"y": 1800}
           ]
       }
  }]
  </code></pre>
  
  <p>2.) How should I know when to use .render() method? I've seen examples of this being used on some charts and not on others. I've read the Rickshaw/github documentation explaining that you use it either to draw or redraw a graph, however, I have seen other examples display without use of this method.</p>