Published
Edited
Oct 11, 2020
Importers
3 stars
Insert cell
Insert cell
function concatenateCharts(index, data, chartFunction) {
const filmography = data[index]

const chart = chartFunction(filmography)

if (data[index + 1]) {
// if there's a next actor, recurse
return vl.vconcat(chart, concatenateCharts(index + 1, data, chartFunction))
} else {
return chart
}
}
Insert cell
scrollSVG = (svg) => {
return html`<div style='max-height:${width}px;overflow:scroll;'>${svg}</div>`
}
Insert cell
Insert cell
import { vl } from "@vega/vega-lite-api"
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