Platform
Solutions
Resources
Pricing
Sign in
Sign up
texnoforge
Workspace
Fork
Published
By
texnoforge
Edited
May 22, 2020
1 fork
2 stars
3
Insert cell
Insert cell
data
=
FileAttachment
(
"texnoskills@10.json"
)
.
json
(
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
format
=
d3
.
format
(
",d"
)
Insert cell
Insert cell
color_s
=
d3
.
scaleOrdinal
(
d3
.
quantize
(
d3
.
interpolateRainbow
,
data
.
children
.
length
+
1
)
)
Insert cell
color_c
=
d3
.
scaleSequential
(
[
8
,
0
]
,
d3
.
interpolateMagma
)
Insert cell
color_zc
=
d3
.
scaleLinear
(
)
.
domain
(
[
0
,
5
]
)
.
range
(
[
"hsl(152,80%,80%)"
,
"hsl(228,30%,40%)"
]
)
.
interpolate
(
d3
.
interpolateHcl
)
Insert cell
color_i
=
d3
.
scaleOrdinal
(
d3
.
quantize
(
d3
.
interpolateRainbow
,
data
.
children
.
length
+
1
)
)
Insert cell
partition_s
=
data
=>
d3
.
partition
(
)
.
size
(
[
2
*
Math
.
PI
,
radius_s
]
)
(
d3
.
hierarchy
(
data
)
.
sum
(
d
=>
d
.
value
)
.
sort
(
(
a
,
b
)
=>
b
.
value
-
a
.
value
)
)
Insert cell
partition_zs
=
data
=>
{
const
root
=
d3
.
hierarchy
(
data
)
.
sum
(
d
=>
d
.
value
)
.
sort
(
(
a
,
b
)
=>
b
.
value
-
a
.
value
)
;
return
d3
.
partition
(
)
.
size
(
[
2
*
Math
.
PI
,
root
.
height
+
1
]
)
(
root
)
;
}
Insert cell
partition_i
=
data
=>
d3
.
partition
(
)
.
size
(
[
height
,
width
]
)
.
padding
(
1
)
(
d3
.
hierarchy
(
data
)
.
sum
(
d
=>
d
.
value
)
.
sort
(
(
a
,
b
)
=>
b
.
height
-
a
.
height
||
b
.
value
-
a
.
value
)
)
Insert cell
partition_zi
=
data
=>
{
const
root
=
d3
.
hierarchy
(
data
)
.
sum
(
d
=>
d
.
value
)
.
sort
(
(
a
,
b
)
=>
b
.
height
-
a
.
height
||
b
.
value
-
a
.
value
)
;
return
d3
.
partition
(
)
.
size
(
[
height
,
(
(
root
.
height
+
1
)
*
width
)
/
3
]
)
(
root
)
;
}
Insert cell
pack_c
=
data
=>
d3
.
pack
(
)
.
size
(
[
width
-
2
,
height
-
2
]
)
.
padding
(
3
)
(
d3
.
hierarchy
(
data
)
.
sum
(
d
=>
d
.
value
)
.
sort
(
(
a
,
b
)
=>
b
.
value
-
a
.
value
)
)
Insert cell
pack_zc
=
data
=>
d3
.
pack
(
)
.
size
(
[
width
,
height
]
)
.
padding
(
3
)
(
d3
.
hierarchy
(
data
)
.
sum
(
d
=>
d
.
value
)
.
sort
(
(
a
,
b
)
=>
b
.
value
-
a
.
value
)
)
Insert cell
arc_s
=
d3
.
arc
(
)
.
startAngle
(
d
=>
d
.
x0
)
.
endAngle
(
d
=>
d
.
x1
)
.
padAngle
(
d
=>
Math
.
min
(
(
d
.
x1
-
d
.
x0
)
/
2
,
0.005
)
)
.
padRadius
(
radius_s
/
2
)
.
innerRadius
(
d
=>
d
.
y0
)
.
outerRadius
(
d
=>
d
.
y1
-
1
)
Insert cell
arc_zs
=
d3
.
arc
(
)
.
startAngle
(
d
=>
d
.
x0
)
.
endAngle
(
d
=>
d
.
x1
)
.
padAngle
(
d
=>
Math
.
min
(
(
d
.
x1
-
d
.
x0
)
/
2
,
0.005
)
)
.
padRadius
(
radius_zs
*
1.5
)
.
innerRadius
(
d
=>
d
.
y0
*
radius_zs
)
.
outerRadius
(
d
=>
Math
.
max
(
d
.
y0
*
radius_zs
,
d
.
y1
*
radius_zs
-
1
)
)
Insert cell
function
autoBox
(
)
{
document
.
body
.
appendChild
(
this
)
;
const
{
x
,
y
,
width
,
height
}
=
this
.
getBBox
(
)
;
document
.
body
.
removeChild
(
this
)
;
return
[
x
,
y
,
width
,
height
]
;
}
Insert cell
d3
=
require
(
"d3@5"
)
Insert cell
One platform
to build and deploy the best data apps
Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
data
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
sunburst_chart
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
zoomable_starburst_chart
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
circle_chart
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
zoomable_circle_chart
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
icicle_chart
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
zoomable_icicle_chart
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
width
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
height
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
radius_s
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
radius_zs
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
format
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
color_s
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
color_c
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
color_zc
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
color_i
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
partition_s
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
partition_zs
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
partition_i
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
partition_zi
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
pack_c
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
pack_zc
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
arc_s
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
arc_zs
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
autoBox
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
d3
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML