Line Chart
✓ Published1🌍 Public
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 descriptionMIT Licensed