Solution
✓ Published0🌍 Public
CCurran Kelleher
Last edited Aug 3, 2017
Created on Aug 3, 2017
This scatter plot visualizes the Iris dataset, showing sepal length on the x-axis and petal length on the y-axis, with circle size encoding petal width. The chart uses D3 v4’s `d3.scaleLinear` for axes and `d3.scaleSqrt` for the size scale, rendering with SVG. A custom `sizeLegend` function generates the legend, while axis labels and styled grid lines come from `d3.axisBottom` and `d3.axisLeft`. The code is organized into reusable functions for modularity.
AI-generated descriptionAn example of a stylized scatter plot with re-usable code organization using D3 v4.
mit Licensed