Skip to main content
100%

Activity6_Question2

✓ Published0🌍 Public
PPreethi Medepalli-91
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Activity6_Task2

This example shows the revenue distribution of electric vehicle manufacturers from 2018 to 2021 using a stacked bar chart. The chart uses D3 v7 to load data from a CSV file and render SVG elements, with `d3.stack()` to create stacked series and `d3.scaleOrdinal()` for color mapping. Revenue values are displayed along a linear scale, while manufacturers are positioned on a band scale. The visualization includes axes, bold labels, and a legend to distinguish the four years.

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