Published
Edited
Mar 19, 2021
Importers
57 stars
Insert cell
Insert cell
Insert cell
penguins = d3.json("https://vega.github.io/vega-datasets/data/penguins.json")
Insert cell
pairplot(penguins)
Insert cell
Insert cell
pairplot(penguins, { hue: "Species" })
Insert cell
Insert cell
pairplot(penguins, { hue: "Species", diag_kind: "hist" })
Insert cell
Insert cell
pairplot(penguins, { kind: "hist" })
Insert cell
pairplot(penguins, { hue: "Species", kind: "hist" })
Insert cell
Insert cell
pairplot(penguins, { hue: "Species", markers: true })
Insert cell
Insert cell
pairplot(penguins, {
vars: ['Beak Length (mm)', "Beak Depth (mm)", "Flipper Length (mm)"],
// kind_diag: 'auto',
// kind: 'scatter',
// markers: true,
width: 500,
height: 350,
spacing: -20,
hue: "Species",
hueVarType: 'nominal', // is automatically set when 'hue' variable is defined, but may be overwritten
// possible values: 'nominal', 'ordinal', 'quantitative'
palette: "deep", // may be any Seaborn / Vega-Lite color scheme string OR an array of colors
showLabels: true,
hideTooltips: true,
showGrid: true,
scaleZero: true
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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