SueTheMap is an interactive, self-contained AI Litigation data visualization tool. It provides a dynamic globe interface that maps out tracking data from the Database of AI Litigation (DAIL).
The project processes raw litigation and media coverage data (from Excel spreadsheets) to generate a deeply interactive single HTML file (sue_the_map.html). The visualization features:
- Interactive 3D Globe: Built with Globe.gl and D3.js for geographic data representation.
- AI-Powered Queries: Integrated with the Anthropic API to allow natural language queries about the litigation data.
- Rich Filtering: Filter cases by state, sector, and timeline.
- Detailed Insights: View total cases, active cases, and media coverage breakdowns by state.
process_data.py: Reads the raw.xlsxdata files and compiles them into a structureddail_data.jsonformat used by the frontend.generate_html.py: The build script that takes the processed data, geographical shapes (us-states.json), CSS, and JavaScript, and bundles them into the finalsue_the_map.htmlfile.sue_the_map.html: The fully self-contained output visualization. No web server required—just open it in any modern browser!
The project requires the following DAIL datasets to build the visualization:
- Case Table (
Case_Table_*.xlsx) - Secondary Source Coverage Table (
Secondary_Source_Coverage_Table_*.xlsx) - Geographical Data (
us-states.jsonfor mapping coordinates)
If you update the source Excel files, you can regenerate the map by running the Python scripts in order:
- Process the raw data:
python3 process_data.py
- Generate the new HTML file:
python3 generate_html.py
- Open
sue_the_map.htmlin your web browser to view the updated visualization.