Published
Edited
Apr 12, 2020
Insert cell
Insert cell
d3 = require('d3@5')
Insert cell
Insert cell
linearNumber = d3
.scaleLinear()
.domain([0, 100])
.range([0, 50])
Insert cell
linearNumber(20)
Insert cell
linearNumber(80)
Insert cell
Insert cell
linearColor = d3
.scaleLinear()
.domain([0, 100])
.range(["steelblue", "orange"])
Insert cell
linearColor(50)
Insert cell
Insert cell
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