Published
Edited
Mar 6, 2018
Importers
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
cars = (await require("@observablehq/cars")).map(n => renameKeys(n,{'Name':'name'}))
Insert cell
Insert cell
data = {
const data = cars.map(({name, Miles_per_Gallon: x, Horsepower: y, Miles_per_Gallon,Horsepower,Displacement,Cylinders, Weight_in_lbs, Acceleration,Year,Origin}) => ({name, x, y,Miles_per_Gallon,Horsepower,Displacement,Cylinders, Weight_in_lbs, Acceleration,Year,Origin}));
data.x = "Miles per Gallon";
data.y = "Horsepower";
return data;
}
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