Skip to main content
100%

Scatter Plot ( Iris Dataset ) Part - 1

✓ Published0🌍 Public
Ggoyalshivam204
Last edited Jun 20, 2023
Created on Jun 20, 2023

This example shows a scatter plot of the Iris dataset, mapping sepal length on the x-axis and sepal width on the y-axis, with each point representing a flower sample. The visualization is rendered as an SVG using React components (AxisX, AxisY, and Marks), with scales created via `d3.scaleLinear` and extents computed from the data. Axes and tick marks are generated manually using D3’s `ticks()` method, while hover tooltips are implemented using SVG `<title>` elements. The code loads CSV data asynchronously via `d3.csv` from a GitHub gist, parsing numeric fields into floats.

AI-generated description

Loading and visualizing data about CSS named color using React and D3

MIT Licensed

Similar vizzes