🌍 Public
Viewing a saved revision (read-only)
fb3c4f53d1634a88aa8ff5cd3f8bae63
task6_2
This example shows a stacked bar chart of the Iris dataset, with sepal length binned into intervals and each bar segmented by species counts. The chart uses an SVG canvas and relies on the D3 version 6 API, including `d3.scaleBand`, `d3.scaleLinear`, `d3.axisBottom`, `d3.axisLeft`, `d3.scaleOrdinal`, and `d3.stack` to create stacked rectangles from the preprocessed data. The visualization displays three color-coded species groups across the horizontal bins, with the y-axis scaled to a fixed maximum of 30.
AI-generated descriptionA demonstration of how to start using D3 version 6.