The map
Part of the Public safety
Each province coloured by **total crimes per 100,000 inhabitants**, latest available year. Hover for the value.
data space «sicurezza-pubblica» — this micro app reads and writes the suite’s shared data space.
The other micro apps in the same suite
How it works
This is a Reactive app: a plain text document that your browser turns into a working app — forms, live data, tables, statistics and even charts, with nothing to install or configure.
- Use it right away. Hit “Use this app”: it opens right in your browser, ready to go, with data saved only on your device.
- Your data stays yours. Everything is stored locally on your device, kept separate for each app: no account, no server, nothing to set up.
- Make it your own. The text below is the entire app: copy it, tweak fields, views and words, and your changes become interactive instantly.
- Share it as a file. An app is a simple file: save it, export it or share it with a link; and with encrypted collaboration several people edit the same data in real time.
The app’s source
# 🗺️ The map
## Crime rate, province by province
Each province coloured by **total crimes per 100,000 inhabitants**, latest
available year. Hover for the value.
::od-query{into="mappa" sql="SELECT p.provincia AS provincia, p.geojson AS geojson, d.tasso_per_100k AS tasso FROM istat_confini_province p JOIN delitti d ON d.sigla = p.sigla WHERE d.tipo_reato = 'totale' AND d.anno = (SELECT max(anno) FROM delitti)" limit="150"}
:::map{path="mappa" geojson="geojson" fill="tasso" height="28rem"}
**{provincia}** — {tasso} crimes per 100,000 inhabitants
:::
The crime rate also depends on how much a territory *reports*, not only on
how much happens: big cities and tourist areas tend to top the charts for
property crime.