🌍 Public
Viewing a saved revision (read-only)
b5e6e7b51d3a411a93b2f314a2975c69
Fork of Viz Function Concept
This dashboard visualizes Boston incident data from a CSV file using three D3.js v7 charts: a bar chart of offense types, an area chart showing hourly incident distribution, and a pie chart of incidents by district. The code uses `d3.rollup` to aggregate the data, `d3.scaleBand` and `d3.scaleLinear` for the bar and area charts, and `d3.area` with `d3.curveMonotoneX` for the hourly trend. Each chart renders as SVG within responsive cards that update their layout at different screen sizes.
AI-generated descriptionA refactoring that introduces the "viz function" as a way to encapsulate configurable logic for graphics and visualization.