Skip to main content
100%

Fork of ICE - 7 Reusable Scatter Plot

✓ Published1🌍 Public
Pprajoth0405
Last edited Mar 27, 2022
Created on Mar 27, 2022

This scatter plot visualizes the Iris flower dataset, mapping petal width against sepal length and coloring each point by species—blue for setosa, red for versicolor, and yellow for virginica. The code uses d3’s `csv` loader, `scaleLinear`, `axisLeft`, and `axisBottom` to render axes, with SVG circles for data marks. A reusable `scatterPlot` function encapsulates the chart, allowing dynamic updates to the x-axis value, cycling through dataset columns. The black background and white axis text use the Share Tech font, creating a stark, readable display.

AI-generated description
MIT Licensed

Similar vizzes