Published
Edited
Sep 16, 2022
Insert cell
Insert cell
Insert cell
color = d3.scaleOrdinal()
.domain(d3.extent(data.map(d => d.translation)))
.range(colorspsf)
.unknown('black')
Insert cell
colorspsf=['#ffd43b','#5a9fd4','#f4f4f4']
Insert cell
data=d3.csvParse(`language,translation
ko,89.8
es,77.6
ja,73.3
zh-cn,63.3
fr,50
pt-br,39.3
id,13.2
pl,7.6
zh-tw,3.2
it,0.7`,d3.autoType)
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.
Learn more