Skip to main content
100%

Reldens

✓ Published2🌍 Public
SStefan Apostol
Last edited Jan 19, 2024
Created on Feb 6, 2023

This example displays a choropleth map of Switzerland, visualizing “Relatedness Density” data for NUTS2 regions using a threshold classification. The map uses a sequential RdYlBu color scale from `d3.scaleSequential` and `d3.interpolateRdYlBu` to encode the values. It leverages the `eurostat-map` library to render the map with SVG, and includes a legend, tooltips, and an inset for small screens. The underlying CSV data is loaded from a GitHub gist, and a button allows downloading the resulting SVG.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter. .classifMethod("threshold") .color(d3.interpolateBlues)

        .threshold([  5,10, 15,20,25, 30,35,40, 45 ])
         d3.scaleSequential( = d3.scaleSequential(d3.interpolateRdYlBu).domain([1, 45]);
MIT Licensed

Similar vizzes