Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Visualization: Sales Distribution by Country (Bar Chart)

Public visualization

Viewing a saved revision (read-only)

9bcd1a6be6da4d23af8255743175e9ab

Fork of Visualization: Sales Distribution by Country (Bar Chart)

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

This example displays a bar chart of sales amounts by country, with the USA, UK, and Canada as categories. Each bar’s height encodes the corresponding sales value. The visualization uses D3 v7 to create an SVG chart, employing `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis, along with `d3.axisBottom` and `d3.axisLeft` for grid lines. Data is hardcoded in the script, and the rendering is purely SVG-based within a React-free HTML page.

AI-generated description

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

See also React Starter.