🌍 Public
Viewing a saved revision (read-only)
483f7cbae9644c819b1cf2df90c85b9e
Assignment 2 Question 2(a)
This area chart visualizes mobile phone prices over time, with cost on the y-axis and year on the x-axis. The chart uses a smooth curve to connect data points and fills the area beneath the line in light blue. The visualization is built with D3 v5, employing `scaleTime` and `scaleLinear` for axes, `line` and `area` generators with `curveBasis` for the smooth path, and `axisBottom`/`axisLeft` for tick marks. Data is loaded from a remote CSV file and parsed with `d3.timeParse` to extract years from date strings.
AI-generated descriptionDisplaying Area Chart