Skip to main content
100%

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

✓ Published1🌍 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.

MIT Licensed

Similar vizzes