Adding Color Legend, ScatterPlot (codeAlong)
✓ Published1🌍 Public
This visualization is an interactive scatter plot of the Iris dataset, mapping sepal and petal measurements to the x and y axes while encoding the iris species with a color legend. The graph uses an ordinal color scale to map the species categories to distinct colors, displayed in a dedicated legend. Built with React and D3 v6, it renders as an SVG and includes dropdown menus for selecting which attributes to display on each axis. The code utilizes D3’s `scaleLinear`, `scaleOrdinal`, `extent`, and `csv` functions to process data and scale values.
AI-generated descriptionMap data to color using an ordinal scale.
Curran Kelleher tutorial Vid 8:06 aprox
MIT Licensed