Malha
Jul 2026A choropleth of Brazil's 5,570 municipalities that draws the same indicator through all five classification methods at once. Where the breaks fall changes the conclusion more than any other decision on the map, and almost no published map reveals which choice was made. It also computes local Moran's I, with neighborhoods extracted from the topology and multiple-comparison correction.
Natural-breaks classification is the exact global optimum in O(k·n·log n): 5,570 municipalities in 2.7 ms against 354.8 ms for the quadratic version, which stays in the repo without serving the app — it exists to prove the fast one reaches the same cost. The /validacao page reruns that proof in the browser, over the data in production.
- Next.js
- TypeScript
- MapLibre GL
- TopoJSON
- Jenks
- Moran's I







