-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 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,23 @@ | ||
# Data Visualization | ||
|
||
## World Map | ||
|
||
It uses this javascript library: [StephanWagner/svgMap](https://github.com/StephanWagner/svgMap) | ||
|
||
Use: | ||
|
||
1. Download the free [IPInfo country database](https://ipinfo.io/products/free-ip-database) | ||
|
||
2. Generate the JSON file | ||
|
||
```bash | ||
python3 world_map_data.py -f ~/Downloads/risk_ip4_med.json -c ~/Downloads/country_asn.mmdb | ||
``` | ||
|
||
3. For testing - run the minimal python3 webserver to enable JS to access the JSON file: | ||
|
||
```bash | ||
python3 world_map_test.py | ||
``` | ||
|
||
4. Open the file in your browser: [http://localhost:8000/world_map.html](http://localhost:8000/world_map.html) |