Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Reusable D3 Scatter Plot with Symbols

Public visualization

Viewing a saved revision (read-only)

e31b76902966401282549f385b8b5b09

Reusable D3 Scatter Plot with Symbols

0 stars0🌍 Public
OOleg Zhernovoy
Last edited Dec 27, 2022
Created on Dec 27, 2022

This example illustrates a reusable D3.js scatter plot that visualizes the classic Iris dataset, mapping petal width against sepal length and using different symbols to distinguish species. The implementation leverages D3’s `scaleLinear`, `scaleOrdinal`, `axisLeft`, `axisBottom`, and `symbol` APIs to create a flexible, configurable chart component. The code loads data from a remote CSV file, parses numeric fields, and renders the plot as an SVG using a custom `scatterPlot` function with settable properties like margins and symbol size.

AI-generated description

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