Published
Edited
Nov 16, 2020
Fork of Template
5 forks
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
{
const points = []
for(let i = 0; i < 50; i = i + 1){
const TP = cars.filter(d => d.Name.split(" ")[0] == "chevrolet").filter(d => d.Miles_per_Gallon <= i).length
const FP = cars.filter(d => d.Name.split(" ")[0] != "chevrolet").filter(d => d.Miles_per_Gallon <= i).length
points.push({x:FP,y:TP})
}
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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