d3 = require("d3@7") | QC | Observable
ojs
ojs
ts
ojs
ojs
ojs
Author
pallavi
@pallavi2
Comments (1)
Nicolas Lambert
Sep 22
D3 is loaded by default in Observable. For other libraries, it is preferable to use the modern import syntax rather than require, which is now deprecated.
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
d3 = require("d3@7") | QC | Observable