CSCE 5320 ICE-6
✓ Published0🌍 Public
DDineshK2602
Last edited Mar 19, 2023
Created on Mar 19, 2023
This example shows the relationship between hospitalized COVID suspected and confirmed patients across 15 counties, using a horizontal bar chart rendered as SVG. Each bar’s length encodes the count of hospitalized suspected patients per county, with axes and tick labels generated manually. The code uses React for component state and lifecycle, alongside D3 v5 functions including `csv`, `scaleBand`, `scaleLinear`, and `max`. Data is loaded from a GitHub gist URL and sliced to the first 15 rows, with bars drawn using SVG `<rect>` elements and red gridlines.
AI-generated descriptionA bare minimum HTML page.
MIT Licensed