Published
Edited
Sep 1, 2021
1 fork
Insert cell
Insert cell
Insert cell
d3.max(cars,d => d.Miles_per_Gallon)
Insert cell
d3.max(cars,d => d.Horsepower)
Insert cell
Plot.plot({
x:{domain:[0,50],grid:true,label:"mpg"},
y:{domain:[0,250],grid:true,label:"hp"},
style:{
//color:"firebrick",
//background:"cornsilk"
},
marks:[
//Plot.frame({fill:"wheat"}),
Plot.ruleX([0]),
Plot.ruleY([0]),
Plot.dot(cars,{x:"Miles_per_Gallon",y:"Horsepower",fill:"#DC143C",stroke:"black",r:3})
]
})
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