Created
October 31, 2014 03:59
-
-
Save dviramontes/e983e7399dfc352369a8 to your computer and use it in GitHub Desktop.
stack d3 transformations
This file contains 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
// 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