Skip to main content
100%

Fork of ICE 7 Area Chart for Rice Production

✓ Published0🌍 Public
SSamir Tarda
Last edited May 6, 2024
Created on May 6, 2024

This example shows a stacked area chart of rice production across six categories—Corporate, Family, Healthcare, Military, Sibling, and Teacher—using data loaded from a tab-separated text file. The chart renders as SVG with D3 v6, employing `d3.stack()` to compute layer series and `d3.area()` to draw each filled region. The x-axis uses a linear scale for row indices, while the y-axis sums values per row. Colors are assigned via `d3.scaleOrdinal` with `d3.schemeCategory10`, and axes are generated with `d3.axisBottom` and `d3.axisLeft`.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes