Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

bar chart visualization of the quantity of items sold in each country

Public visualization

Viewing a saved revision (read-only)

a935b2b1e79e4339a2aa7ab28531508e

bar chart visualization of the quantity of items sold in each country

0 stars2🌍 Public
JJames Cruz
Last edited Apr 23, 2024
Created on Apr 23, 2024
Forked from HTML Starter

This bar chart visualization displays the total quantity of items sold across five countries, with data aggregated from individual order records listing each country’s cumulative sales figures. The visualization uses D3.js v7 to group raw data points by country, compute summed quantities via `d3.rollup` and `d3.sum`, then render the results as proportional bars scaled to the maximum value. The SVG-based rendering employs D3’s ordinal color scale to distinguish countries, with hover interactions that enlarge bars for emphasis. The chart presents the United Kingdom as the leading seller, followed by Italy, with Germany, France, and Australia showing lower volumes.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.