Reusable D3 Scatter Plot - Ep9
✓ Published0🌍 Public
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 descriptionA demonstration of how to start using D3 version 6.
MIT Licensed