ICE-6 (Marks and Channels) - Scatter Plot
✓ Published0🌍 Public
This scatter plot visualizes the Iris dataset, mapping petal length and width for individual flowers while encoding species identity through circle fill colors (blue, yellow, or red). The SVG rendering uses d3.scaleLinear to establish x and y axes, with d3.axisLeft and d3.axisBottom providing tick marks. Data loads asynchronously via d3.csv, and circles are joined to the DOM using selection.join. The code also stores sepal measurements as unused circle radii properties, while axis labels appear rotated and positioned via SVG text elements.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed