Platform
Resources
Pricing
Sign in
Get started
深度碎片
as simple as possible
Workspace
Fork
Published
d3 source code
By
深度碎片
Edited
Nov 9, 2019
Importers
d3 source code
d3-selection/src/select.js
d3-selection/src/selection/select.js new
d3-selection-src-selector-js
d3-selection/src/selectAll.js
Unit testing visually inside a notebook
Jasmine for Testing
Insert cell
md
`# d3-selection/src/selectAll.js`
Insert cell
Insert cell
{
debugger
;
return
selectAll
(
"h1"
)
;
}
Insert cell
document
.
querySelectorAll
(
"h1"
)
// not as detailed as in debugger tool
Insert cell
selectAll
=
function
(
selector
)
{
// debugger;
return
typeof
selector
===
"string"
?
new
Selection
(
[
document
.
querySelectorAll
(
selector
)
]
,
[
document
.
documentElement
]
)
:
new
Selection
(
[
selector
==
null
?
[
]
:
selector
]
,
root
)
;
}
Insert cell
import
{
Selection
,
root
}
from
"@embracelife/d3-selection-01"
;
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
selectAll
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML