Search code examples
d3.jsnvd3.jsboxplotaxis-labels

disable y-axis max and min values on nvd3 boxplot


I am using nvd3 boxplot and would like to remove the max and min values being shown in the plot. For example, I do not want the values 7 and 68 to be displayed on the y-axis for the chart below.

enter image description here

Any suggestions as to how I can do it. Thanks.


Solution

  • After rendering the chart do:

    d3.selectAll(".nv-axisMaxMin-y").remove(); //it will remove the max min
    

    Working code here

    Hope this helps!