viewofslope=slider({min:-10,max:0,description:"adjust the slope"})
viewofintercept=slider({min:80,max:180,step:1,description:"adjust the intercept"})
d3.min(points,d=>(d.Miles_per_Gallon))
d3.max(points,d=>parseInt(d.Miles_per_Gallon))
points.filter(d=>d.Horsepower<50)
// For Loop
{
for(vari=0;i<10;i++){
}
}
// While Loop
{
vari=0
while(i<10){
i++
}
}
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.