Public
Edited
Jun 18, 2023
Importers
Insert cell
Insert cell
Insert cell
viewof change = changeTable([
{
date: new Date("2023-06-18"),
change: "renamed function to `changeTable()`"
},
{ date: new Date("2023-06-17"), change: "added function `changeLog()`" }
])
Insert cell
Insert cell
changeTable = function (data) {
return Inputs.table(data, {
format: {
change: (x) => {
const html = md`${x}`; // invoke markdown
html.style = "margin: 0;"; // remove margin to preserve table style
return html;
}
},
width: { date: 100 }
});
}
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