Public
Edited
Feb 20, 2023
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
world = {
let map = eurostatmap
.map("ch")
.svgId("world")
.width(width)
.height(height)
.geo("WORLD")
.colorFun(d3.interpolateBlues)
.bottomText(false)
.projectionFunction(projections[projectionIndex].value())
.frameStroke("none");
map.statData().setData(stats);
map.build();
return map;
}
Insert cell
Insert cell
Insert cell
Insert cell
eurostatmap = require("eurostat-map@3.6.39")
Insert cell
d3 = require("d3-array@2", "d3-geo@2", "d3-geo-projection@3", "d3-geo-polygon@1.8", "d3-scale-chromatic")
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