Skip to main content
100%

Bar chart with D3.js

✓ Published1🌍 Public
AAdrianlead
Last edited May 30, 2020
Created on May 30, 2020
Forked from Hello VizHub

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
MIT Licensed

Similar vizzes