Skip to main content
100%

-Line

✓ Published0🌍 Public
Ssridhardubala106@gmail.com
Last edited Mar 28, 2024
Created on Mar 28, 2024
Forked from Menu with D3

A multi-line chart displays car sales by type across the years 2019–2021, with each line traced using `d3.line()` and `d3.curveMonotoneX`. The code loads raw text data via `d3.text`, parses it into arrays, and renders the chart as SVG. Scales include `d3.scaleBand` for the categorical x-axis and `d3.scaleLinear` for the y-axis, with axes drawn via `d3.axisBottom` and `d3.axisLeft`. Year labels are appended at the end of each line, and the chart includes titled axes and a legend-free color encoding for the three yearly series.

AI-generated description
MIT Licensed

Similar vizzes