Public
Edited
Oct 12, 2023
Importers
5 stars
Insert cell
Insert cell
Insert cell
Insert cell
viewof textarea_input = Inputs.textarea({
placeholder: "Type anything you like",
value: SearchParams.textarea_input
})
Insert cell
viewof checkbox_input = Inputs.checkbox(
["check", "any", "combination", "of", "boxes"],
{ value: SearchParams.checkbox_input }
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
SearchParams = _.mapValues(
Object.fromEntries(new URLSearchParams(location.search)),
(param) => {
try {
return JSON.parse(param);
} catch {
param;
}
}
)
Insert cell
Insert cell
toURLQuery = (object) => {
const object_stringified = _.mapValues(object, JSON.stringify);
return new URLSearchParams(object_stringified).toString();
}
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