Skip to content

Instantly share code, notes, and snippets.

@dviramontes
Created October 31, 2014 03:59
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 dviramontes/e983e7399dfc352369a8 to your computer and use it in GitHub Desktop.
Save dviramontes/e983e7399dfc352369a8 to your computer and use it in GitHub Desktop.
stack d3 transformations
// stack transform method 1
.attr("transform", d3.transform('...').toString())
// stack transform method 2
.attr("transform", function () {
return this.getAttribute("transform") + "scale(0.75)" + "translate(" + 0 + "," + cellSize + ")"
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment