Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

refactor

  • Loading branch information...
commit 5c9834e453260ba244b3d1af2052925135df84a6 1 parent 69fa799
@shuw authored
Showing with 0 additions and 9 deletions.
  1. +0 −9 assets/js/viz.coffee
View
9 assets/js/viz.coffee
@@ -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,7 +69,6 @@ Graph =
.start()
@link = @vis.selectAll("line.link").data(@links)
-
@link.enter().append("line")
.attr("class", "link")
.style("stroke-width", (d) -> 2)
@@ -82,11 +76,9 @@ Graph =
.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")
Please sign in to comment.
Something went wrong with that request. Please try again.