Public
Edited
Jul 7, 2024
Fork of Utils
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
module = import(`https://api.observablehq.com/${id}.js`)
Insert cell
id = {
yield document.referrer.replace('https://observablehq.com/','');
/*
for(var i=0;i<Infinity;i++){
yield Promises.delay( 100, document.referrer.replace('https://beta.observablehq.com/',''))
}
*/
}
Insert cell
dependencies ={
return dot`digraph "${id||"@bumbeishvili/utils"}" {
rankdir = RL;
${module.default.modules[0].variables
.filter(v => !v.from) // Don’t graph dependencies of imports.
.filter(v => v.name)
.map((v, i) => {
const inputs = v.inputs || [];
const name = v.name || `#${i}`;
return inputs.map(input => `"${input}" -> "${name}"`).join("\n")
})
.join("\n")}
}`
}
Insert cell
Insert cell
import {createContinentSelector} from "@bumbeishvili/continent-selector"
Insert cell
continentSelector = createContinentSelector
Insert cell
Insert cell
group([{name:'David',age:20,point:20},
{name:'George',age:20,point:50},
{name:'George',age:21,point:40},
{name:'David',age:20,point:30}]
)
.by(d=>d.name,d=>d.age)
.run()
Insert cell
group = groupF
Insert cell
Insert cell
rangeSlider = barRangeSlider
Insert cell
import {barRangeSlider} from "@bumbeishvili/data-driven-range-sliders"
Insert cell
Insert cell
comments = disqussCodePart;
Insert cell
import {disqussCodePart} from "@bumbeishvili/comments-on-notebooks"
Insert cell
Insert cell
Insert cell
Insert cell
import {inputsGroup} from "@bumbeishvili/input-groups"
Insert cell
inputsGrid = inputsGroup
Insert cell
Insert cell
import {persistentSelectImpl} from "@bumbeishvili/persistent-select-input"
Insert cell
persistentSelect = persistentSelectImpl
Insert cell
Insert cell
Insert cell
Insert cell
import {collapsedCSS} from '@j-f1/css-template-tag'
Insert cell
Insert cell
css = collapsedCSS
Insert cell
style = collapsedCSS
Insert cell
Insert cell
import {wrangleF} from "@bumbeishvili/wrangle"
Insert cell
wrangle = wrangleF
Insert cell
Insert cell
import {load} from "@bumbeishvili/fetcher"
Insert cell
Insert cell
import {transformFlatHierarchy} from "@bumbeishvili/extract-empty-hierarchy-from-flat-data"
Insert cell
Insert cell
Insert cell
import { MultiSelectImpl } from "@bumbeishvili/observable-multiselect-input"
Insert cell
MultiSelect = MultiSelectImpl
Insert cell
Insert cell
import {dot} from "@mbostock/graphviz"
Insert cell
import {groupF} from "@bumbeishvili/group"
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more