Public
Edited
Aug 10, 2023
Insert cell
Insert cell
table = Inputs.table(penguins, {
format: {
culmen_length_mm: td_format,
culmen_depth_mm: td_format,
species: td_format,
island: td_format,
flipper_length_mm: td_format,
body_mass_g: td_format,
sex: td_format
}
})
Insert cell
td_format = (d, i, data) =>
data[i].culmen_length_mm > 40
? htl.html`<div style="background-color: lightblue;">${d}</div>`
: htl.html`<div style="background-color: white;">${d}</div>`
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