Skip to main content
100%

Reusable D3 Scatter Plot - Ep9

✓ Published0🌍 Public
SSam Hege
Last edited Jul 30, 2022
Created on Jul 30, 2022
Forked from D3 Scatter Plot

This example demonstrates a reusable D3 scatter plot that visualizes the Iris dataset, mapping petal length to the x-axis and sepal length to the y-axis. It uses d3.csv to load the data, d3.scaleLinear for both axes, and d3.axisLeft and d3.axisBottom to generate the axis ticks. The plot renders circles with a fixed radius in an SVG that fills the browser window, with margins applied using d3-selection’s append and attr methods. The code is written in D3 v7 and is the ninth episode in a series on building reusable visualizations.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes