Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar chart

Public visualization

Viewing a saved revision (read-only)

d612f8304f9c42beb907c15a598a0f2f

Bar chart

0 stars2🌍 Public
EElora-dev
Last edited Jul 23, 2020
Created on Jul 19, 2020
Forked from HTML Starter

This bar chart displays the average weight of different species, categorized by continent, revealing which regions harbor the largest animals. The visualization fetches its data from a remote JSON file via `d3.json`, then uses `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the categorical y-axis. SVG rectangles are drawn for each species, with axes created using `d3.axisBottom` and `d3.axisLeft`. The chart applies a custom tick format via `d3.format` to abbreviate large numbers, and all rendering occurs in SVG.

AI-generated description