Permalink
Browse files

refactor

  • Loading branch information...
shuw committed Feb 1, 2012
1 parent 69fa799 commit 5c9834e453260ba244b3d1af2052925135df84a6
Showing with 0 additions and 9 deletions.
  1. +0 −9 assets/js/viz.coffee
View
@@ -58,11 +58,6 @@ Graph =
@refreshData()
setInterval (=>
- # _(@linksToAdd.splice(0,5)).each (link) =>
- # @links.push(link)
-
-
-
@processData(@news_events.splice(0, 3))
@refreshData()
), 500
@@ -74,19 +69,16 @@ Graph =
.start()
@link = @vis.selectAll("line.link").data(@links)
-
@link.enter().append("line")
.attr("class", "link")
.style("stroke-width", (d) -> 2)
.attr("x1", (d) -> d.source.x)
.attr("y1", (d) -> d.source.y)
.attr("x2", (d) -> d.target.x)
.attr("y2", (d) -> d.target.y)
-
@link.exit().remove()
@node = @vis.selectAll("g.node").data(@nodes)
-
@node.enter()
.append("svg:g")
.attr("class", "node")
@@ -98,7 +90,6 @@ Graph =
.attr("y", "-30px")
.attr("width", "40px")
.attr("height", "60px")
-
@node.exit().remove()
@node.append("title")

0 comments on commit 5c9834e

Please sign in to comment.