JavaScript nice() method for ticks in nvd3

I have been working on nvd3 , in d3.js to make the ticks look good their is a nice() provided for ex.

var yScale = d3.scale.linear()
            .domain([0, d3.max(dataset, function(d) { return d[1]; })])
                .range([225,50]).nice();

but in case of nvd3 , this nice() is not working , i have tried many things such as :

//   chart.yAxis.scale().nice();                     not working
 //  chart.yAxis.scale(d3.scale.linear().nice());     not working

So how can i use this nice function in nvd3 or else their is any other alternative ?

Answer:1

How can I add an option to resize a bootbox.alert(); ? I'm using Bootbox 4.3.0. bootbox.alert("Success",function(){ }); Here is the link for the bootbox.js library.

How can I add an option to resize a bootbox.alert(); ? I'm using Bootbox 4.3.0. bootbox.alert("Success",function(){ }); Here is the link for the bootbox.js library.

We are currently using Zend Framework 1 with Dojo forms, and are facing a recent problem with some users reporting bugs while using our forms on IE11: for example they are able to check multiple radio ...

We are currently using Zend Framework 1 with Dojo forms, and are facing a recent problem with some users reporting bugs while using our forms on IE11: for example they are able to check multiple radio ...

  1. zend framework latest version
  2. zend framework latest
  3. zend framework latest version download
  4. zend framework latest stable version
  5. zend framework 1 latest version
  6. zend framework 2 latest version
  7. php zend framework latest version

first of all just want to say that i'm not a programer but i'm trying to replicate a code and since my javascript is not the best i'm failing at it. The "animation" in css/java/wtv i'm trying to ...

first of all just want to say that i'm not a programer but i'm trying to replicate a code and since my javascript is not the best i'm failing at it. The "animation" in css/java/wtv i'm trying to ...

  1. make hover stay

I'm using c3js to make a chart with row data and want to use specific colours. var chart = c3.generate({ data: { x:'x', rows: [ ['x','Winter 2007-2008','Winter 2008-...

I'm using c3js to make a chart with row data and want to use specific colours. var chart = c3.generate({ data: { x:'x', rows: [ ['x','Winter 2007-2008','Winter 2008-...