title: How to set the domain and scale on an yaxis on a discreteBarChart nvd3.js
body: <p>I'm using d3.js charts in one of my applications.
  Here they are in this image
  See <a href="http://d.pr/i/Ogts" rel="noreferrer">Charts</a></p>
  
  <p>For Y axis on Money chart (See in the Image), I want maximum value rounded to 400, no matter what maximum bar size is here it is $358.72, but I want to keep bar at 358.72 but on Y Axis it would be 400 Limit.</p>
  
  <p>Code for it is here</p>
  
  <pre><code>tradesChart = [ 
        {
          key: "Cumulative Return",
          values: [
                          {
              "label" : "6E",
              "value" : 100       },
                      {
              "label" : "NG",
              "value" : 100       },
                      {
              "label" : "TF",
              "value" : 67        }        ]
        }
      ];
          nv.addGraph(function() {
  
        var chart = nv.models.discreteBarChart()
            .x(function(d) { return d.label })
            .y(function(d) { return d.value/100 })
            .staggerLabels(true)
            .showValues(true)
            .valueFormat(d3.format('.0%'))
  
        chart.yAxis.tickFormat(function(d) { return d3.format('d')(d*100) + '%'; });
  
        d3.select('#chart-trades svg')
          .datum(tradesChart)
          .transition().duration(500)
          .call(chart);
  
        nv.utils.windowResize(chart.update);
  
        return chart;
      });
  </code></pre>
  
  <p>Kindly Help me to solve this out</p>