🌍 Public
activity8-task4
This example shows an interactive scatter plot of the Iris dataset, encoding sepal length on the x-axis, petal length on the y-axis, and species with distinct symbol shapes. It uses d3.csvParse to load data, d3.scaleLinear for positioning, d3.scaleOrdinal with d3.symbolsFill for shape encoding, and custom axes and legend modules built on d3.axisLeft, d3.axisBottom, and d3.symbol. The plot renders marks as SVG paths, with transitions between load states, and includes a shape legend showing species categories with labeled tick marks.
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
Comments
Sign in to join the discussion.