Plot: Diverging stacked bars | Observable | Observable
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
Author
Observable
@observablehq
The end-to-end solution for building and hosting better data apps, dashboards, and reports.
Comments (1)
Mike Bostock
Apr 12, 2022
I might skip this step. It’s a fair amount of work to do this (unlike the previous approaches), and it has the downsides you mention compared to the recommended approach using a custom offset function below.
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
Observable
32
Reply
Add comment
Subscribe to notifications
64
Plot: Diverging stacked bars | Observable | Observable