Skip to main content
100%

Line Chart

✓ Published1🌍 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
MIT Licensed

Similar vizzes