Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Line Chart

Public visualization

Line Chart

0 stars1🌍 Public
Ssalimjivani
Last edited Mar 28, 2022
Created on Mar 28, 2022

A line chart visualizes sales volume by month across multiple districts, with time on the x-axis and temperature-derived sales values on the y-axis. Using D3 v5 and SVG rendering, the code employs `scaleTime`, `scaleLinear`, `scaleOrdinal`, `line` with `curveBasis`, and `nest` to group data by district. Axes are generated via `axisLeft` and `axisBottom`, with data fetched from a CSV and dates parsed using dayjs. A custom `colorLegend` function displays the categorical color scale.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed