Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added switching-between-datasets example
- Loading branch information
Showing
5 changed files
with
3,570 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
# Switching Between Datasets | ||
|
||
Example of using `react-simple-maps` to create a choropleth map of the world that can toggle between displaying population data or the subregions of the world according to the [UN Statistics Division](https://unstats.un.org/unsd/methodology/m49/). | ||
|
||
## How to use | ||
|
||
Download this example map [or clone the repo](https://github.com/zcreativelabs/react-simple-maps): | ||
|
||
```bash | ||
curl https://codeload.github.com/zcreativelabs/react-simple-maps/tar.gz/master | tar -xz --strip=2 react-simple-maps-master/examples/switching-between-datasets | ||
cd switching-between-datasets | ||
``` | ||
|
||
Once you have downloaded the example install the dependencies and run the app. | ||
|
||
```bash | ||
npm install | ||
npm run dev | ||
``` |
Oops, something went wrong.