2
votes

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.

3

3 Answers

6
votes

An alternative to the object property and deletion methods is calling the showMaxMin method on the chart object itself:

chart.yAxis.showMaxMin(false);
3
votes

After rendering the chart do:

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

Working code here

Hope this helps!

1
votes

set chart : { yAxis: { showMaxMin : false } }