🌍 Public
Viewing a saved revision (read-only)
dde10a96292947a3a22a4d755684ffd9
Task 2 Assignment 9
This example shows cinema sales over time as a red filled area chart, using D3 v7 to render an SVG visualization. It loads data from an inline array with dates parsed via `timeParse`, then applies `scaleTime` and `scaleLinear` to map the year and sales values. The area is generated with the `area()` generator using a `curveBasis` interpolation. Axes are drawn with `axisBottom` and `axisLeft`, with tick lines extending across the chart to create a grid-like effect.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.