Fork of Scatter Plot with Color
✓ Published0🌍 Public
This example displays the classic Iris Dataset, plotting sepal length against petal length for 150 flowers and using color to distinguish the three species: setosa, versicolor, and virginica. It includes labeled axes and a color legend. The visualization is built with D3.js, using `scaleLinear` for the axes, `scaleOrdinal` with `schemeCategory10` for color mapping, and the `.join()` pattern to manage SVG elements. The code also modularizes reusable components for rendering axes and the color legend.
AI-generated descriptionA scatter plot of the Iris Dataset with a color legend.
See also:
MIT Licensed