A Flet-based application for visualizing dengue, zika and chikungunya data from Brazil.
- Interactive state-level choropleth maps
- City-level time series charts
- Disease selection (Dengue, Zika, Chikungunya)
- State and city search functionality
- Data caching for better performance
- Python 3.12+
- Flet with all dependencies (see pyproject.toml)
- Clone this repository:
git clone https://github.com/your-repo/Infodengue_flet.git
cd Infodengue_flet
- Install uv On Mac and Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
On windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
- Create and activate a virtual environment:
uv sync
Start the application:
uv run flet run main.py
The application will:
- Launch the desktop application
- Default to Rio de Janeiro data
- You can select other states and cities using the dropdown menus
- Uses
InfodengueMaps
class fromgeodata/features.py
to:- Connect to WFS geoserver
- Fetch state and city boundaries
- Get city names and codes
- State maps using Matplotlib (
viz/charts.py
) - City time series using Plotly (
viz/charts.py
) - Interactive controls for data selection
You can modify:
- Default state/city in
main.py
- Date ranges in
viz/charts.py
- Map styles in
viz/charts.py
- Case data through the MOSQLient library
- Geographic data from InfoDengue WFS server