Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Reusable scatter plot

Public visualization

Viewing a saved revision (read-only)

11b21286b8e04118bb73c5af67c8d1bd

Reusable scatter plot

0 stars0🌍 Public
KKiran Jyothi Bodduluri-11604571
Last edited Mar 11, 2023
Created on Mar 11, 2023

This example shows a reusable scatter plot of the Iris dataset, encoding petal width on the x-axis, sepal length on the y-axis, and species as symbol shapes. Built with D3.js, it uses a custom `scatterPlot` function that takes data, value accessors, and margin configuration, then renders SVG paths via the `symbol` and `symbols` APIs. It also applies `scaleLinear` for axes, `scaleOrdinal` for categorical mapping, and `axisLeft`/`axisBottom` for tick marks, with data parsed from a CSV URL.

AI-generated description