🌍 Public
Viewing a saved revision (read-only)
bb69c9e8367d4eac9a65b715b9918a56
Fork of Stylized Scatter Plot with Color Legend
DDivyaVellanki
Last edited Mar 7, 2022
Created on Mar 7, 2022
Forked from Fork of Stylized Scatter Plot with Color Legend
This example shows a scatter plot of Iris flower measurements with a color-coded legend for species. The axes represent sepal length and petal length, while each circle is colored by species using a static `d3.scaleOrdinal` with `d3.schemeCategory10`. The code uses `d3.csv` to load external data, `d3.axisBottom` and `d3.axisLeft` for tick marks, and `d3.legendColor` from the d3-legend library to render the color legend. All elements are drawn as SVG circles and text within a single SVG container, with custom CSS styling for guide lines and labels.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.