t-3.2
✓ Published0🌍 Public
This example demonstrates a scatter plot visualizing the Iris dataset, encoding sepal length on the x-axis, petal length on the y-axis, and species as different point shapes. It loads data from a GitHub-hosted CSV file using the Fetch API and `d3.csvParse`. The visualization uses `d3.scaleLinear`, `d3.scaleOrdinal`, `d3.symbol`, and `d3.axisLeft`/`d3.axisBottom` for axes, rendered within an SVG sized to the browser window. A custom legend module displays the shape-to-species mapping.
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