Skip to main content
100%

Fork of HW5: Stacked Bar Charts

✓ Published1🌍 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.

MIT Licensed

Similar vizzes