Skip to main content
100%

bar grapgh

✓ Published1🌍 Public
SSai Hemanth Babu Sunkari
Last edited Mar 21, 2024
Created on Mar 19, 2024

This bar chart displays total sales across product categories, with each category represented by a colored bar on a band scale. The visualization uses D3.js v7 to load CSV data from a GitHub gist, map it into an array of category-total pairs, and render an SVG chart with axes, labels, and a legend. The code applies a sequential color scheme via `d3.scaleOrdinal` with `d3.schemeCategory10`, and uses `d3.axisBottom` and `d3.axisLeft` for the axes. A title and rotated category labels are included to improve readability.

AI-generated description

D3 Hierarchies

MIT Licensed

Similar vizzes