1
0
Fork 0

Don't show empty points in box plot

This commit is contained in:
Gregory Eremin 2016-01-10 19:37:22 +03:00
parent 2ffc0d590b
commit cd76b06f17
1 changed files with 4 additions and 0 deletions

View File

@ -141,6 +141,10 @@ var BoxPlot = React.createClass({
});
var renderBox = function(point, i) {
if (point.max === 0) {
return;
}
var relativeY = function(val) {
return maxHeight - Math.round((val-min)/(max-min) * maxHeight);
};