Skip to main content
100%

Activity 7 Area Chart

✓ Published0🌍 Public
Rraaghaveramireddy@my.unt.edu
Last edited Nov 7, 2024
Created on Nov 7, 2024
Forked from Hello VizHub

This example renders an area chart showing the proportion of ratings across different music genres. It uses stacked areas, colored with a custom palette, to display the data, with a legend identifying each genre. The chart is built with D3 v6, loading data from a CSV file via `d3.csv`. It creates an SVG visualization using `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, and a custom `d3.area` generator for the areas, with axes and labels added via `d3.axisBottom` and `d3.axisLeft`.

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