I am trying to use D3 to find the lowest value in my dataset. However, I also have values โโequal to 0, but I want D3 to find the smallest value that is not 0.
I am currently using:
d3.min (data, function (d) {return d.houseValues;})
But obviously, this returns 0 sometimes when 0 is found.
Is there any way to do this? Or is it the only solution to build a normal for loop with an if statement to ignore the values โโof 0 ..?
Thanks!
source share