ICE6 - Bar Chart
✓ Published0🌍 Public
This bar chart displays Super Store sales totals across different states, sourced from a CSV of the first 100 records of the dataset. The visualization uses React to manage the data-fetching state and D3.js to render the scalable vector graphics (SVG) bars and axes. Specifically, `scaleBand` and `scaleLinear` position the bars, while custom tick rendering replaces default axes, with gridlines drawn in blue. The chart encodes sales values as bar lengths, making state-level comparisons straightforward. Data is loaded asynchronously via `d3.csv`, with each row’s `Sales` field converted to a numeric `Cost` value for plotting.
AI-generated descriptionMIT Licensed