ICE 7 Q2
✓ Published0🌍 Public
This visualization combines a scatter plot and a pie chart to explore a dataset of 100 trees, using D3.js v7 to render both as SVGs. The pie chart, constructed with `d3.pie()` and `d3.arc()`, shows the distribution of tree species, with each slice colored via a categorical scale and labeled with its species name. A manually built HTML legend maps colors to species names, while the accompanying scatter plot (from a separate script) provides an additional view of the raw data. The pie chart’s data is aggregated from a CSV file using `d3.rollup()` to count trees per species, and the rendering relies on SVG `path` and `text` elements.
AI-generated descriptionMIT Licensed