Created
June 20, 2014 12:09
-
-
Save arcanis/83dc04ccf211a27291d0 to your computer and use it in GitHub Desktop.
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
barDemo.selectAll("rect"). | |
data(data). | |
enter(). | |
append("svg:rect"). | |
attr("x", function(datum, index) { return x(index); }). | |
attr("y", function(datum) { return height - y(datum.books); }). | |
attr("height", function(datum) { return y(datum.books); }). | |
attr("width", barWidth). | |
attr("fill", "#2d578b"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment