Skip to main content
100%

Animal Popularity Chart

✓ Published1🌍 Public
Bbprokopowicz
Last edited Mar 25, 2020
Created on Mar 25, 2020

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 description

D3 course follow along.

MIT Licensed

Similar vizzes