Activity6_Task3.2
✓ Published0🌍 Public
This example visualizes the Iris dataset as a scatter plot showing sepal length versus petal length, with species encoded by point shape and a legend. It demonstrates modular D3 code organization: a scatterPlot module manages scaling and marks, while axes and shapeLegend modules add labeled axes and a symbol legend. Data loads from a remote CSV file using d3.csvParse. The code separates visualization logic into reusable ES6 modules and uses d3.scaleLinear, d3.scaleOrdinal, d3.symbol, and d3.axisLeft/axisBottom.
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