Difference between revisions of "Team:Korea U Seoul/Attributions"

 
(6 intermediate revisions by the same user not shown)
Line 66: Line 66:
 
.node circle {
 
.node circle {
 
   fill: #fff;
 
   fill: #fff;
   stroke: steelblue;
+
   stroke: black;
 
   stroke-width: 2.5px;
 
   stroke-width: 2.5px;
 
   r:15;
 
   r:15;
Line 72: Line 72:
  
 
.node text {
 
.node text {
   font: 14px emulogic;
+
   font: 13px emulogic;
 
}
 
}
  
Line 161: Line 161:
 
   nodeEnter.append("circle")
 
   nodeEnter.append("circle")
 
       .attr("r", 2e-6)
 
       .attr("r", 2e-6)
       .style("fill", function(d) { return d._children ? "lightsteelblue" : "#fff"; });
+
       .style("fill", function(d) { return d._children ? "yellow" : "#fff"; });
  
 
   nodeEnter.append("text")
 
   nodeEnter.append("text")
       .attr("x", function(d) { return d.children || d._children ? -15 : 15; })
+
       .attr("x", function(d) { return d.children || d._children ? -20 : 20; })
 
       .attr("dy", ".35em")
 
       .attr("dy", ".35em")
 
       .attr("text-anchor", function(d) { return d.children || d._children ? "end" : "start"; })
 
       .attr("text-anchor", function(d) { return d.children || d._children ? "end" : "start"; })
Line 177: Line 177:
 
   nodeUpdate.select("circle")
 
   nodeUpdate.select("circle")
 
       .attr("r", 4.5)
 
       .attr("r", 4.5)
       .style("fill", function(d) { return d._children ? "lightsteelblue" : "#fff"; });
+
       .style("fill", function(d) { return d._children ? "yellow" : "#fff"; });
  
 
   nodeUpdate.select("text")
 
   nodeUpdate.select("text")

Latest revision as of 02:51, 17 October 2016

Works