Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

JS in HTML

Public visualization

Viewing a saved revision (read-only)

0b71cdbaea7d4e2b9bd4aeee49472490

JS in HTML

0 stars1🌍 Public
Jjajinkya
Last edited Nov 6, 2022
Created on Nov 6, 2022
Forked from HTML Starter

This example renders a scatter plot of the Iris dataset, showing the relationship between petal length and sepal length. Data is loaded from a GitHub-hosted CSV using `d3.csv` and parsed to numeric values, then mapped to SVG circles. The visualization uses `d3.select` to create the SVG canvas, `d3.scaleLinear` for both axes with `d3.extent` for domain calculation, and displays the axes with `d3.axisLeft` and `d3.axisBottom`. Each circle includes a tooltip title showing its coordinates. The chart fills the browser window, with margins defined via a constant.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.