Published
Edited
Dec 15, 2020
Insert cell
md`# avocado :) `
Insert cell
viewof reg = select(USARegions)
Insert cell
albany_graph = {
let linegraph = vl.markLine()
.data(avocado_albany)
.encode(
vl.x().fieldT("Date"),
vl.y().sum("Large Bags")

);
return linegraph.render();

}
Insert cell
USARegions = { return Array.from(new Set(avocado.map(d=>d.region))) }
Insert cell
avocado_albany = {return avocado.filter(d=>d.region==reg)}
Insert cell
avocado = {return await FileAttachment("avocado.csv").csv()}
Insert cell
import {vl} from '@vega/vega-lite-api'
Insert cell
import {select} from "@jashkenas/inputs"
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