Bar Chart
✓ Published0🌍 Public
This horizontal bar chart ranks the top 10 countries by diabetes cases, using a green bar length to encode the numeric value from a local CSV file. The chart applies a linear scale for case counts and a band scale for country names, with axes labeled accordingly. Built with D3 v5, the code loads data via `d3.csv`, sorts and slices it, and renders SVG rectangles using `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`.
AI-generated descriptionTop 10 countries with high Diabetes data
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed