Let’s Make a Bar Chart, Part 3 | D3 | Observable
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
Author
Mike Bostock
@mbostock
Visualization toolmaker. Founder
@observablehq
. Creator
@d3
. Former
@nytgraphics
. Pronounced BOSS-tock.
Comments (1)
Ruben Rizzi
Mar 6, 2021
Same consideration .attr("y", (y.bandwidth() - 1) / 2)
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Public
Forum
Bluesky
YouTube
X
Observable
Sign up
D3
Mike Bostock
8
Reply
Add comment
Subscribe to notifications
24
Let’s Make a Bar Chart, Part 3 | D3 | Observable