Top 4 delitos en Costa Rica. Periodo 2015-2018.
✓ Published0🌍 Public
This stacked bar chart shows the top four crime categories in Costa Rica from 2015 to 2018: hurto, asalto, robo, and homicidios. The visualization highlights the relative frequency of each crime type per year, with segments stacked to reveal both individual and cumulative values. Built with D3 v3 and React, the code uses `d3.layout.stack()` to transpose the data, `d3.scale.ordinal()` for the x-axis, and `d3.svg.axis()` for rendering axes. An interactive tooltip, created with SVG elements, displays the exact count when the user hovers over a segment. The data originates from an embedded array within the HTML.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed