Area Chart Activity 8
✓ Published0🌍 Public
This area chart displays the cost of sales from 2000 to 2013 using a smooth, basis-curved line and a light green filled area beneath it. The visualization loads CSV data from a GitHub gist, parses years as dates, and renders an SVG with axes, gridlines, and labeled tick marks. Built with D3 v5, it uses `scaleTime` and `scaleLinear` for scales, `axisBottom` and `axisLeft` for axes, and `area` and `line` generators with `curveBasis` to create the chart. The code also demonstrates importing from local ES6 modules, as shown in the `myMessage.js` file.
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