Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of HW5: Stacked Bar Charts

Public visualization

Viewing a saved revision (read-only)

5ae33054d9024c1aa7634e405ab69c49

Fork of HW5: Stacked Bar Charts

0 stars1🌍 Public
Oobope@proton.me
Last edited Mar 19, 2024
Created on Mar 19, 2024

This stacked bar chart visualizes the distribution of five opinion categories—ranging from "Tout à fait d'accord" to "Sans opinion"—across six French presidential candidates. Each bar represents a candidate, with segments colored by response type. The chart uses D3.js v6 to render SVG, with interactive dropdowns allowing users to filter by response category and sort the bars by ascending or descending total value. The legend uses a distinct color palette (dark green, light green, orange, red, and light gray) to map each response category, and a button triggers the re-rendering of the visualization based on selected options.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.