ICE - 7 Area Chart for Car Sales in Canada
✓ Published0🌍 Public
This visualization shows car sales in Canada over time using a smooth area chart, with the y-axis labeled “Sales in Canada” and the x-axis labeled “In through the Years.” The chart employs D3 v5’s `scaleTime`, `scaleLinear`, `area`, and `line` generators with `curveBasis` to render a curved line and filled area beneath it. Sales data is parsed from a CSV file, with years converted via `d3.timeParse`. Axes are drawn using `axisLeft` and `axisBottom`, and gridlines are created through tick size settings. The SVG rendering includes styled paths for the line and area, with margins defining the plot region.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed