title: n3-charts plot data with dates as the x-axis
body: <p>I have a some data that I would like to plot using n3-charts and this is what I have.</p>
  
  <pre><code>$scope.options = {
            axes: {
              x: {
                key: "dateRecorded",
                type: "date",
                labelFunction: function(d) { return d3.time.format("%Y-%m-%d").parse(d); }
              },
              y: {type: "linear"}
            },
            series: [
              {
                y: "weight",
                key: "weight",
                label: "Weight",
                color: "#2ca02c"
              }
            ]
          };
  </code></pre>
  
  <p>This is a sample piece of data that I would like to plot.</p>
  
  <pre><code>[{dateRecorded: "2015-04-15", weight: 15}, {dateRecorded: 2015-04-16, weight: 16}, {dateRecorded: "2015-04-17", weight: 17}]
  </code></pre>
  
  <p>The chart shows up but no data is plotted. The browser console outputs the following.</p>
  
  <pre><code>TypeError: undefined is not a function
      at d3_time_parseFullYear 
  </code></pre>
  
  <p>So it cannot parse the date correctly but I am not sure what I am doing wrong.</p>
  
  <p>Any help would be appreciated.</p>