Skip to main content
100%

Assignment 2.2

✓ Published0🌍 Public
Ppjdhungana@gmail.com
Last edited Jul 21, 2023
Created on Jul 14, 2023
Forked from Hello VizHub

A stacked bar chart displays monthly sales data from a CSV file, showing both quantity and amount per month in two color-coded segments. The visualization uses D3.js with SVG rendering, loading data via `d3.csv` from a GitHub gist. The chart leverages `d3.scaleBand` for the categorical month axis, `d3.scaleLinear` for the numeric amount axis, and `d3.scaleOrdinal` for color assignment. It includes manually positioned axis labels, a title, and a legend built with SVG rectangles and text. The styling uses custom fonts and colors defined in a separate CSS file.

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