This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Set up initial code for visualization | |
var svg = d3.select(controller.element).append("svg") | |
.attr("width", "100%").attr("height", "100%") | |
.append("g") | |
.attr("transform", "translate(10,10)"); | |
// This function receives a JS Array of JS Objects | |
// representing the current state of your data. | |
controller.update = function (data) { | |
// Join new data with old elements, if any. |