Scatterplot | Benbinbin | Observable
ojs
ojs
ojs
ojs
Author
Benbinbin
@benbinbin
Creator
Comments (2)
Benbinbin
Feb 15, 2022
the `width` parameter use Observable standard library
https://observablehq.com/@observablehq/stdlib#widthSection
it can change responsively when the page resized the standard library of Observable
https://github.com/observablehq/stdlib
Benbinbin
Feb 15, 2022
refer to the standard library of width:
https://github.com/observablehq/stdlib/blob/main/src/width.js
I write a function to get the page width and add the debound feature, check it out in this codepen:
https://codepen.io/benbinbin/pen/PoOJKWV
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
Explore
Forum
Bluesky
YouTube
X
0
Follow
Follow
Scatterplot | Benbinbin | Observable