Activity_7 Q2
✓ Published0🌍 Public
This area chart displays supermarket sales totals aggregated by product line, using a steelblue filled path to show the distribution of revenue across six product categories. The visualization loads data from a remote CSV file and processes it with d3.rollups to sum the Total field for each product line, then sorts the categories alphabetically. The chart uses d3.scaleBand for the x-axis, d3.scaleLinear for the y-axis, and d3.area to generate the path, with d3.axisBottom and d3.axisLeft providing labeled axes.
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