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

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