Don't show empty points in box plot
This commit is contained in:
parent
2ffc0d590b
commit
cd76b06f17
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue