Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created October 22, 2013 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmcw/7107347 to your computer and use it in GitHub Desktop.
Save tmcw/7107347 to your computer and use it in GitHub Desktop.
Gist from mistakes.io
void require('http://d3js.org/d3.v3.min.js');
function myFunction(selection, color) {
selection.style('background', color);
}
d3.select('body').call(myFunction, 'lightgreen');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment