Skip to content

Commit

Permalink
add world-map info
Browse files Browse the repository at this point in the history
  • Loading branch information
superstes committed Oct 18, 2024
1 parent 33d5af4 commit 9972417
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions visualization/README.md
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)

0 comments on commit 9972417

Please sign in to comment.