Skip to content

Instantly share code, notes, and snippets.

View cesarpachon's full-sized avatar

cesar pachon cesarpachon

View GitHub Profile
@cesarpachon
cesarpachon / text.js
Last active August 29, 2015 14:10 — forked from refactornator/text.js
// 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.