🌍 Public
Viewing a saved revision (read-only)
5300e90620754540af8ce6d6a11dc871
Bar chart with D3.js
This bar chart visualizes COVID-19 infection counts across cantons in San José, Costa Rica, with San José leading at 145 cases. Built with D3 v5 and SVG, the chart uses `d3.scaleBand` and `d3.scaleLinear` for axes and rendering animated bars from CSV data. Hovering a bar triggers a `mouseenter` event that draws a dashed guide line and displays divergence values relative to the hovered canton, while fading other labels. Gridlines, axis titles, and descriptive text clarify the data, though no tooltip or transition effects are present beyond opacity changes.
AI-generated description