act 6 t3.2
✓ Published0🌍 Public
This example visualizes the Iris dataset as a scatter plot, mapping sepal length to the x-axis and petal length to the y-axis, with each species represented by a distinct symbol from d3.symbol and symbolsFill. The visualization loads data from a remote CSV file via d3.csvParse, converting numeric columns before rendering. The code demonstrates the use of local ES6 modules—importing axes and shapeLegend components—alongside d3.axisLeft, d3.axisBottom, d3.scaleLinear, and d3.scaleOrdinal to manage scales, axes, and a custom shape legend.
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