title: NVD3.js yAxis and tooltip different percision
body: <p>I'm using NVD3.js to display a multi-line chart.</p>
  
  <p>I would like the yAxis to display to 2 decimal numbers</p>
  
  <p><em>edited answer</em></p>
  
  <pre><code> var chart;
  
      nv.addGraph(function () {
          chart = nv.models.lineChart()
          .options({
              margin: { left: 140, bottom: 50 },
              x: function (d, i) {
                  return i;
              },
              showXAxis: true,
              showYAxis: true,
              transitionDuration: 250,
              tooltips: true,
              tooltipContent: function (key, x, y, e, graph) {
                  return '&lt;h3&gt;' + key + '&lt;/h3&gt;' +
                         '&lt;p&gt;' + e.point.y + ' at ' + x + '&lt;/p&gt;'
              }
          });
  
          // chart sub-models (ie. xAxis, yAxis, etc) when accessed directly, return themselves, not the parent chart, so need to chain separately
          chart.xAxis
              .axisLabel("Maturity")
              .tickFormat(function(d) { return pivotedData[0].values[d].x; });
  
          chart.yAxis
              .axisLabel('Model Spread').tickFormat(d3.format(',.2f'));
  
  
          d3.select('#chart1 svg')
            .datum(pivotedData)
            .call(chart);
  
          //TODO: Figure out a good way to do this automatically
          nv.utils.windowResize(chart.update);
  
          chart.dispatch.on('stateChange', function (e) { nv.log('New State:', JSON.stringify(e)); });
  
          return chart;
      });
  </code></pre>
  
  <p>But in the tool tip on the lines i would like to display to 12 decimals places.</p>
  
  <p>Is this possible?</p>