Published
Edited
Feb 3, 2021
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
ramp(d3.scaleLinear().range(["white", "blue"]))
Insert cell
Insert cell
// Use a linear scale
ramp(d3.scaleLinear().range([d3.schemeBlues[3][0], d3.schemeBlues[3][2]]))
Insert cell
// The scale Sequential works just the same
ramp(d3.scaleSequential([d3.schemeBlues[3][0], d3.schemeBlues[3][2]]))
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import { select, slider } from "@jashkenas/inputs"
Insert cell
d3 = require("d3")
Insert cell
import { swatches } from "@d3/working-with-color"
Insert cell
import { legend, swatches as legend_swatches } from "@d3/color-legend"
Insert cell
import { ramp } from "@d3/sequential-scales"
Insert cell
import { displayCaution, displayImage } from "@info474/utilities"
Insert cell
import { chart } from "@d3/choropleth"
Insert cell
html`<style>
p code, li code {color: #c30771;}
</style>`
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