Type Table, then Shift-Enter. Ctrl-space for more options.
Plot.plot({
grid:true,
nice:true,
color:{legend:true},
marks:[
Plot.dot(penguins,{
x:"culmen_length_mm",
y:"culmen_depth_mm",
stroke:"species"
}),
Plot.density(penguins,{
x:"culmen_length_mm",
y:"culmen_depth_mm",
fill:"species",
fillOpacity:0.05
})
]
})
Plot.plot({
marks:[
Plot.waffleY(
penguins,
Plot.groupX(
{y:"count"},
{
x:"species",
fill:"species",
unit:numUnits,
sort:{x:"y",reverse:true}
}
)
),
Plot.ruleY([0])
]
})
a=1
b=5
c=a+b
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.