🌍 Public
Viewing a saved revision (read-only)
d0c1af8697f6430d923695d65cfea3aa
Fork of ICE 7 Area Chart for Rice Production
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 descriptionA demonstration of how to start using D3 version 6.