Skip to main content
100%

ICE 6 (Marks and Channels) - Bar Graph

✓ Published0🌍 Public
NNaveen Kumar
Last edited Mar 23, 2023
Created on Mar 22, 2023
Forked from HTML Starter

This bar graph visualizes sales figures for 30 US states from the Superstore dataset, with states on the y-axis and sales values on the x-axis. The React component loads data via d3.csv and renders SVG rectangles scaled by d3.scaleBand and d3.scaleLinear. Grid lines and tick marks are generated manually using d3.format, while axis labels are positioned from the scales' domain values. Each state’s bar length encodes its total sales, allowing quick comparison across the displayed subset.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes