Skip to main content
100%

trend category

✓ Published1🌍 Public
Sshahedabdullhadi
Last edited Mar 18, 2021
Created on Mar 18, 2021

This visualization shows monthly crime counts across Costa Rican provinces from 2016 to 2019, with each year represented by a colored line. A dropdown menu allows users to switch between provinces, updating the line chart and its axis labels dynamically. The chart uses d3.scaleTime and d3.scaleLinear for axes, d3.nest to group data by year, and d3.line with curveBasis to draw smooth paths. A color legend maps years to distinct hues, and transitions animate line updates. Data is loaded from a CSV file using d3.csv.

AI-generated description
MIT Licensed

Similar vizzes