Area Chart Activity 8
✓ Published0🌍 Public
This area chart displays the cost of sales from 2000 to 2013, using a smooth curve to show the trend over time. The visualization includes labeled axes and a shaded area beneath the line to highlight the magnitude of values. Built with D3 v5, it loads CSV data from a GitHub gist, parses the year and cost fields, and uses `scaleTime`, `scaleLinear`, `area`, `line`, and `curveBasis` to generate the chart. The SVG rendering is styled with CSS for tick colors, axis labels, and the light green fill.
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.
MIT Licensed