title: NVD3 - Changing X Label Axis on a Line Graph
body: <p>I have a simple line graph with data in the format:</p>
  
  <pre><code>[
      {
          label: "lebel1",
          x: 0,
          y: 128
      },
      {
          label: "lebel1",
          x: 1,
          y: 128
      },
      ....
      {
          label: "lebel2",
          x: 25,
          y: 128
      },
      ....
      {
          label: "lebel8",
          x: 285,
          y: 128
      },
      .... 
  </code></pre>
  
  <p>}</p>
  
  <p>and I pass this into my nvd3 object:</p>
  
  <pre><code>nv.addGraph(function() 
  {
      var chart = nv.models.lineChart();
  
      chart.xAxis
          .axisLabel("My X-Axis")
          .ticks(36)
          .tickFormat(function(d) { return d; });
  
      chart.yAxis
          .axisLabel('Voltage (v)')
          .tickFormat(d3.format('.02f'));
  
      d3.select('div svg')
          .datum(myData)
          .transition().duration(500)
          .call(chart);
  
      nv.utils.windowResize(function() { d3.select(gridSvgId).call(chart) });
  
      return chart;
  });
  </code></pre>
  
  <p>How can I have my x-axis ticks to show:
  * eight labels:  label1 - label8</p>
  
  <p>Rather than have the grids broken up into a variable number of lines?</p>