Created
April 7, 2019 17:00
-
-
Save matt-oxley/ddb46e0d6f0e2dfa9d8a6feb518d263e 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
const bars = svg | |
.selectAll("rect") | |
.data(data) | |
.join("rect") | |
.attr("height", d => yScale(d)) | |
.attr("width", barWidth) | |
.attr("x", (d, i) => i * barWidth) | |
.attr("y", d => height - yScale(d)) | |
.attr("stroke", "white") | |
.attr("fill", "steelblue"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment