diff --git a/visualization/README.md b/visualization/README.md new file mode 100644 index 0000000..8230e46 --- /dev/null +++ b/visualization/README.md @@ -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)