Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Reusable D3 Scatter Plot

Public visualization

Viewing a saved revision (read-only)

580ca22374f44bd9b611a90e14c9c09f

Fork of Reusable D3 Scatter Plot

0 stars1🌍 Public
PPoojaThandra
Last edited Mar 10, 2023
Created on Mar 10, 2023

This visualization displays the classic Iris dataset as a scatter plot of petal width against sepal length, encoded using D3's scaleLinear, scaleOrdinal, and symbol scales. Each of the three iris species is represented by a distinct D3 symbol shape, rendered as SVG paths using the symbol generator. The code builds a reusable scatterPlot function with configurable accessors for x, y, and symbol values, and adds axisBottom and axisLeft for the axes. Data is loaded asynchronously via d3.csv from a GitHub-hosted CSV file, with the plot filling the entire browser window.

AI-generated description

A vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.