Skip to content

Instantly share code, notes, and snippets.



Created Oct 3, 2012
What would you like to do?
adding an info div to network visualization
<div id="main" role="main">
<div id="vis"></div>
<div id="info"></div>
node.on("mouseover", showDetails)
.on("mouseout", hideDetails)
.on("click", showInfo)
showInfo = (d,i) ->
infoDiv ="#info")
content = "<ul>"
content += "<li>Name: #{}</li>"
content += "<li>Artist: #{d.artist}</li>"
content += "<li>Playcount: #{d.playcount}</li>"
content += "</ul>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment