You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A point cloud would be a single point for each route placed in a circular cloud colored by type. Andy Woodruff provided an basic example of how he did this:
//// Incomplet. For example only.varg=symbols.append("g"),statePath=d3.select(/* selector for the state polygon */),centroid=path.centroid(statePath.datum());vartotal=// whatever the total number of dots isdotDiameter=4,dist=0,circumference=0,canFit=1,count=0,angleDelta=0;for(vari=0;i<total;i++){count++;if(count>canFit){dist+=dotDiameter;circumference=2*dist*Math.PI;canFit=Math.floor(circumference/dotDiameter),angleDelta=2*Math.PI/canFit;count=0;}varcurrentAngle=angleDelta*count;varx=Math.cos(currentAngle)*dist,y=Math.sin(currentAngle)*dist;g.append("circle").attr("cx",x+dotDiameter/2).attr("cy",y+dotDiameter/2).attr("r",dotDiameter/2).attr("fill","#ccc").attr("stroke","#666");}g.attr("transform","translate("+centroid.toString()+")");
The text was updated successfully, but these errors were encountered:
A point cloud would be a single point for each route placed in a circular cloud colored by type. Andy Woodruff provided an basic example of how he did this:
The text was updated successfully, but these errors were encountered: