Skip to content
A minimal react app that can display bivariate choropleth maps of Switzerland
JavaScript HTML
Branch: master
Clone or download
Latest commit 63c6471 Nov 2, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public initial commit Nov 2, 2019
src initial commit Nov 2, 2019
.gitignore initial commit Nov 2, 2019
README.md initial commit Nov 2, 2019
gde-1-1-15.cpg
gde-1-1-15.dbf initial commit Nov 2, 2019
gde-1-1-15.prj initial commit Nov 2, 2019
gde-1-1-15.qpj initial commit Nov 2, 2019
gde-1-1-15.shp initial commit Nov 2, 2019
gde-1-1-15.shx initial commit Nov 2, 2019
package.json initial commit Nov 2, 2019
result.png initial commit Nov 2, 2019
shp2topo.js initial commit Nov 2, 2019
yarn.lock initial commit Nov 2, 2019

README.md

Bivariate maps with react and d3

Read more about how to map Swiss coordinates (LV95, CH1903+) in these blog-posts:

It is the react + d3 version of the bivariate choropleth map with ggplot + sf as described in this this blogpost.

The use of react is hereby not sctrictly necessary and much of the code found in SwissMap.js is also valid for other programming environments.

The result looks like this:

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

You can’t perform that action at this time.