if(scale(d)<scale.range()[1]+10||scale(d)>scale.range()[0]-10){// 10 is assuming text height is 16... if d is 0, leave it!
if(d>1e-10||d<-1e-10)// accounts for minor floating point errors... though could be problematic if the scale is EXTREMELY SMALL
d3.select(this).attr('opacity',0);
d3.select(this).select('text').attr('opacity',0);// Don't remove the ZERO line!!
}
});
@ -319,7 +319,7 @@ nv.models.axis = function() {
d3.rebind(chart,scale,'domain','range','rangeBand','rangeBands');//these are also accessible by chart.scale(), but added common ones directly for ease of use