🌍 Public
Viewing a saved revision (read-only)
b6f5bda08c294835abfb813cf310b9ec
task 3 question 6
A scatter plot visualizes penguin measurements, mapping flipper length on the x-axis and bill length on the y-axis, with each species represented by a distinct symbol from d3.symbolsFill. A custom legend, built with d3.symbol, displays these species shapes. The chart uses d3.scaleLinear for axes, d3.scaleOrdinal for shapes, and d3.axisBottom/axisLeft for ticks. Data is loaded asynchronously from a CSV and parsed with d3.csvParse. The visualization updates dynamically via a state-based render loop.
AI-generated description