Published
Edited
Jan 8, 2020
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
columnsNames.map(name => {
const values = buckets.map(b => {
return (b.primarySector.buckets.find(sector => sector.key === name) && b.primarySector.buckets.find(sector => sector.key === name).doc_count) || 0
})
return [name, ...values]
})
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