Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Asssignement

Public visualization

Asssignement

0 stars0🌍 Public
Ssairathan.p045@gmail.com
Last edited Mar 9, 2026
Created on Mar 9, 2026

A bar chart displays monthly sales for 100 coffee shop branches, with each bar colored on a sequential blue scale to encode sales magnitude. Using D3 v7 within a React component, the visualization loads data from a CSV file via `d3.csv`, aggregates it, and renders SVG rectangles scaled with `scaleBand` and `scaleLinear`. Branch labels are rotated on the x-axis, and axes are drawn with `axisBottom` and `axisLeft`, with hover effects changing bar color to orange.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed