Skip to main content
100%

Assignment2 question 2

✓ Published0🌍 Public
BBhavana Sharma
Last edited Apr 12, 2024
Created on Apr 12, 2024

This example displays a filled area chart that visualizes sales trends over months, using data fetched from a GitHub Gist CSV file. The chart is rendered as an SVG using D3 v7, employing `d3.scaleBand` for the categorical x-axis, `d3.scaleLinear` for the numeric y-axis, and `d3.area` to generate the shaded region. Axis labels for "Sales" and "Month" are added via `d3.axisLeft` and `d3.axisBottom`.

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