Skip to main content
100%

Delitos por provincia en Costa Rica

✓ Published2🌍 Public
BBernal Rojas
Last edited May 30, 2020
Created on May 30, 2020
Forked from Hello VizHub

This line chart shows monthly crime counts by Costa Rican province from 2016 to 2019, with a dropdown menu to switch between provinces. Using d3.scaleTime, d3.scaleLinear, d3.axisBottom, and d3.axisLeft, the visualization renders multiple colored lines via d3.line and d3.curveBasis, one per year, with d3.nest grouping data by year. A d3.scaleOrdinal color legend (d3.scaleOrdinal) and smooth d3.transition animations animate the path updates when selecting a new province. The data comes from a CSV file.

AI-generated description
MIT Licensed

Similar vizzes