Skip to main content
100%

Untitled

✓ Published1🌍 Public
Mmuzzheng
Last edited Mar 7, 2021
Created on Mar 6, 2021

A stacked bar chart displays forest area data for ten countries, with bars divided into colored segments representing different forest types (surface, forest, plantforest, primaryforest, privateforest). Users toggle a checkbox to switch between absolute values and percentages, which rescales the bar segments accordingly. Clicking a legend item filters the chart to highlight a selected forest type, animating the bars with `transition.attrTween`. The visualization uses D3 v4 with SVG rendering, reading from a CSV file, and includes interactive animations for data exploration.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes