🌍 Public
Viewing a saved revision (read-only)
758c2304681e4c5394e71e14784f5570
Fork of D3 Scatter Plot
This is an interactive scatter plot built with React and D3, rendering as an SVG. It visualizes the Iris dataset, plotting petal width on the x-axis against sepal length on the y-axis. The example uses D3's scaleLinear, extent, axisLeft, and axisBottom to map data points and draw the chart axes. It employs a chainable setter pattern in the scatterPlot function to configure its properties. The code also demonstrates how to load CSV data using D3’s csv function and how to dynamically size the visualization to the viewport.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.