Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Multi-Series Chart by Mohith

Public visualization

Multi-Series Chart by Mohith

0 stars0🌍 Public
Kkmohithkumar7@gmail.com
Last edited Oct 20, 2025
Created on Oct 20, 2025
Forked from HTML Starter

This multi-series line chart displays Walmart's monthly Sales, Profit, and CustomerTraffic data from a CSV file, plotting each metric as a colored line over the months. The visualization uses hard-coded keys and colors to distinguish series, with all lines sharing a common linear y-scale. Built with D3 v7, the code loads the data via `d3.csv`, creates scales using `d3.scaleBand` and `d3.scaleLinear`, and renders the lines with `d3.line`. It also includes axes via `d3.axisBottom` and `d3.axisLeft`, plus a manual legend of colored rectangles and text labels.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed