Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

STarda - Activity 9 - Question 2

Public visualization

Viewing a saved revision (read-only)

16283ecb8dec40c9bcad37bc14ec2193

STarda - Activity 9 - Question 2

0 stars0🌍 Public
SSamir Tarda
Last edited May 6, 2024
Created on May 6, 2024
Forked from Hello VizHub

This stacked area chart displays discount amounts across six categories—Corporate, Family, Healthcare, Military, Sibling, and Teacher—for a series of data points loaded via d3.tsv from a tab-separated dataset. The chart uses d3.stack() to layer the categories and d3.area() with linear x and y scales to render SVG paths, with d3.schemeTableau10 providing color encoding. Missing values default to zero, and the visualization includes axes, labels, a title, and a legend.

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.