Animal Popularity Chart
✓ Published1🌍 Public
This example displays a horizontal bar chart showing the popularity of five animals, as recorded in a local CSV file. The visualization uses D3 v5's `csv` method to load the data, `scaleLinear` for the x-axis representing popularity counts, and `scaleBand` for the categorical y-axis listing animal names. Rendered as SVG rectangles with a steelblue fill, the chart includes axes generated via `axisLeft` and `axisBottom`, with margins applied to position the plotting area within a 960×500 viewport.
AI-generated descriptionD3 course follow along.
MIT Licensed