Histogram | D3 | Observable
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
Comments (4)
Veli
Feb 11, 2022
How would one display ratio (% of all items) instead of the count, on the Y axis?
Fil
Mar 15, 2022
We could add a "normalize" option to the function, then divide all the counts by the sum, and change the axis to display percentages rather than raw values between 0 and 1?
Veli
Mar 15, 2022
+1
Fil
Mar 28, 2022
I have added the normalize option; thank you for the suggestion!
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
73
Reply
Add comment
Subscribe to notifications
749
Histogram | D3 | Observable