Reusable Scatter Plot with D3.js
✓ Published0🌍 Public
This example demonstrates a reusable scatter plot built with D3.js that visualizes the Iris dataset, mapping sepal length and sepal width for each flower specimen. The code loads data from a remote CSV file using `d3.csv`, converts numeric columns, and constructs an SVG chart with `d3.scaleLinear` for the axes. It uses `d3.axisBottom` and `d3.axisLeft` to render the scales, and appends circles with a steelblue fill to represent data points.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed