Y
Hacker News
new
|
ask
|
show
|
jobs
by
terpimost
1870 days ago
Awesome. Does it require access to the document/window or it can be used in React?
1 comments
terpimost
1870 days ago
Ok, I see it does use document since there is d3.create() is under the hood.
link
tophtucker
1869 days ago
Yup. There’s some discussion of this in this issue
https://github.com/observablehq/plot/issues/359
, which notes that the ~100 test plots in
https://github.com/observablehq/plot/tree/main/test/plots
are rendered by Node with JSDOM by
https://github.com/observablehq/plot/blob/main/test/plot.js
.
link