// **Injecting series and point index for reference
return[x(getX(point,pointIndex))*(Math.random()/1e12+1),y(getY(point,pointIndex))*(Math.random()/1e12+1),groupIndex,pointIndex];//temp hack to add noise untill I think of a better way so there are no duplicates
return[x(getX(point,pointIndex))*(Math.random()/1e12+1),y(getY(point,pointIndex))*(Math.random()/1e12+1),groupIndex,pointIndex,point];//temp hack to add noise untill I think of a better way so there are no duplicates
})
.filter(function(pointArray,pointIndex){
returnpointActive(pointArray[4],pointIndex);// Issue #237.. move filter to after map, so pointIndex is correct!
//// TODO: consider removing points from voronoi that have 0 value instead of this hack
/*
if(!Math.round(stacked.y()(e.point)*100)){// 100 will not be good for very small numbers... will have to think about making this valu dynamic, based on data range
// **Injecting series and point index for reference
return[x(getX(point,pointIndex))*(Math.random()/1e12+1),y(getY(point,pointIndex))*(Math.random()/1e12+1),groupIndex,pointIndex];//temp hack to add noise untill I think of a better way so there are no duplicates
return[x(getX(point,pointIndex))*(Math.random()/1e12+1),y(getY(point,pointIndex))*(Math.random()/1e12+1),groupIndex,pointIndex,point];//temp hack to add noise untill I think of a better way so there are no duplicates
})
.filter(function(pointArray,pointIndex){
returnpointActive(pointArray[4],pointIndex);// Issue #237.. move filter to after map, so pointIndex is correct!
//// TODO: consider removing points from voronoi that have 0 value instead of this hack
/*
if(!Math.round(stacked.y()(e.point)*100)){// 100 will not be good for very small numbers... will have to think about making this valu dynamic, based on data range