Published
Edited
Jul 9, 2020
Insert cell
md`# Untitled`
Insert cell
Insert cell
// Create an embed function that applies the loader and theme
vegalite = function(spec) {
return vegaEmbed(spec, {loader: vegaEmbed.vega.loader({baseURL: 'https://vega.github.io/vega/'}), theme: "quartz", actions: true})
}
Insert cell
vegaEmbed = require("vega-embed@6")
Insert cell
d3 = require("https://d3js.org/d3.v5.min.js")
Insert cell
data = d3.json(
"https://gist.githubusercontent.com/kjgarza/dd173284577691e97968b0d84b8c1953/raw/de2365288a73d8d3c525394726afd86e1ae0773d/data_matrix"
)
Insert cell
data
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