Public
Edited
Jun 11, 2024
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Inputs.table(data, {
format: {
Percent: d3.format(".0%")
}
})
Insert cell
Insert cell
viewof percent = Inputs.range([0, 1], {
value: 0.5,
step: 0.01,
label: "Pick a percent"
// format: (x) => d3.format(".0%")(x) this doesn't work!
})
Insert cell
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