Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE - 7 Area Chart for Car Sales in Canada

Public visualization

Viewing a saved revision (read-only)

8cd1944a7cfe4a1c8774a8150997d08f

ICE - 7 Area Chart for Car Sales in Canada

0 stars0🌍 Public
AAsherpranayp
Last edited Mar 24, 2023
Created on Mar 24, 2023

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.