Published
Edited
Apr 10, 2022
6 stars
Insert cell
Insert cell
Insert cell
Insert cell
h = d3.scaleSqrt()
.domain([0,100])
.range([0, 30])
Insert cell
path = shape2path.polygon()
.attr("points", d => d);
Insert cell
Insert cell
margin = ({top:50, bottom:50, left:20, right:20})
Insert cell
height = width*2/3
Insert cell
width = 500
Insert cell
dirtysnow = "#9E9C98"
Insert cell
snow = "#F0EFED"
Insert cell
mountain_developed = "#9B9583"
Insert cell
mountain = "#6F522F"
Insert cell
background= "#F4EEE2"
Insert cell
textcolor = "#442819"
Insert cell
Insert cell
shape2path = require("shape2path@3")
Insert cell
import {wrap_text_nchar} from "@ben-tanen/svg-text-and-tspan-word-wrapping"
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