Skip to main content
100%

Assignment 7 - Question 2

✓ Published0🌍 Public
MMohammed Abdul Mannan
Last edited Nov 7, 2025
Created on Nov 7, 2025

This example shows a time-series area chart of a stock’s closing price, with a shaded region beneath a line plot to emphasize price levels over time. It loads CSV data from a GitHub gist, parses dates with `d3.timeParse`, and uses `d3.area` and `d3.line` generators to produce SVG paths. Axes are drawn with `d3.axisBottom` and `d3.axisLeft`, while scales (`d3.scaleTime`, `d3.scaleLinear`) map data to chart dimensions. The chart includes a title and axis labels, with an error message displayed if data loading fails.

AI-generated description
MIT Licensed

Similar vizzes