Published
Edited
Aug 23, 2021
2 stars
Insert cell
md`# Wrangler customisations

Motivated by https://twitter.com/utopiah/status/1429706821229494272

To try :
- adding operation via Wrangler.addOperation = (operation)

Working :
- changing Operations directly
- requires to redefine icons to get a visual
- adding a custom or example category in categories of OperationsMenu
- modified render_code_panel to allow for alternative text
- could be conditional, e.g. display this message before 1 query otherwise that message

Not working :
- changing wrapper.value.code in Wrangler
- modifying wrangled.code
`
Insert cell
welcomeCodeMessage = `original`
// `// To use copied code replace "data" with your own variable\n`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viewof wrangled = Wrangler(data, [], 'aq.from(data).orderby(aq.desc("Attendees"))')
Insert cell
Insert cell
Insert cell
wrangled.code = 'aq.from(data).orderby(aq.desc("Attendees"))'
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
icons = {
originalIcons.test = originalIcons.select
return originalIcons
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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