Public
Edited
Dec 5
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
countyShapes
Insert cell
populationByCounty
Insert cell
demographicsData
Insert cell
selectedFields
Insert cell
niceLabel
Insert cell
Insert cell
Insert cell
Insert cell
juneau = {
return { latitude: 58.3, longitude: -134.416111 };
}
Insert cell
columbiaGeoJSON = {
return {
type: "FeatureCollection",
features: [
{
type: "Feature",
geometry: {
type: "Point",
coordinates: [columbia.longitude, columbia.latitude]
},
properties: {}
}
]
};
}
Insert cell
Insert cell
Insert cell
Insert cell
import { land } from "@d3/world-map"
Insert cell
Insert cell
viewof gain = Inputs.range([0, 11], { value: 5, step: 0.1, label: "Gain" })
Insert cell
gain
Insert cell
Insert cell
viewof counter = Inputs.button(
[
["Increment by 1", (value) => value + 1],
["Increment by 3", (value) => value + 3],
["Decrement", (value) => value - 1],
["Reset", (value) => 0]
],
{ value: 4, label: "Counterrrrrrrr" }
)
Insert cell
counter
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more