Skip to main content
100%

Activity_7 Q2

✓ Published0🌍 Public
Kkesava
Last edited Nov 7, 2024
Created on Nov 6, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes