Published
Edited
Mar 25, 2020
5 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import {dependencies} from "@bumbeishvili/utils"
Insert cell
dependencies
Insert cell
Insert cell
import {continentSelector} from "@bumbeishvili/utils"
Insert cell
viewof continent = continentSelector()
Insert cell
continent
Insert cell
Insert cell
import {group} from "@bumbeishvili/utils"
Insert cell
groupByData = require("@observablehq/cars")
Insert cell
group(groupByData)
.by(d=>d.Year, d=>d.Cylinders)
.run()
Insert cell
Insert cell
import {tablefy} from "@bumbeishvili/utils"
Insert cell
tableData = [{a:1,b:2,c:3,k:8,k:0},{a:2,c:3,}] // first row must contain all columns
Insert cell
tablefy(tableData)
Insert cell
Insert cell
import {rangeSlider} from "@bumbeishvili/utils"
Insert cell
rangeSliderData = [...Array(500)]
.map((d,i)=>Math.random()*500)
.map(d=>Math.round(d))
Insert cell
viewof range = rangeSlider(rangeSliderData,d=>d)
Insert cell
range
Insert cell
Insert cell
Insert cell
comments(true)
Insert cell
Insert cell
import {inputsGrid} from "@bumbeishvili/utils"
Insert cell
import {slider,select} from "@jashkenas/inputs"
Insert cell
Insert cell
viewof values = inputsGrid([
[
slider({'title':'test',name:'name',description:'description'}),
slider({'title':'test',name:'name',description:'description'}),
slider({'title':'test',name:'name',description:'description'}),
],
[
slider({'title':'test',name:'name',description:'description'}),
slider({'title':'test',name:'name',description:'description'}),
slider({'title':'test',name:'name',description:'description'}),
],
[
`<div style="height:50px;width:${width/2-100}px"></div>`, // Just a trick, to make select element centered
select(['test','name']),
]
])
Insert cell
Insert cell
import {persistentSelect} from "@bumbeishvili/utils"
Insert cell
Insert cell
persistentSelect([1,2,3,4],'key')
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