Published
Edited
Mar 28, 2020
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
d3.min(carsData,d => d.Miles_per_Gallon)
Insert cell
d3.max(carsData,d => d.Miles_per_Gallon)
Insert cell
d3.min(carsData,d => d.Horsepower)
Insert cell
d3.max(carsData,d => d.Horsepower)
Insert cell
Insert cell
Insert cell
Insert cell
tex`Horsepower = ${gradient} * MilesPerGallon + ${intercept}`
Insert cell
Insert cell
Insert cell
viewof mpg = slider({min:20,max:50,step:0.5,title:"Miles Per Gallon"})
Insert cell
Prediction = (gradient * mpg) + intercept
Insert cell
Insert cell
Insert cell
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