🌍 Public
Task9_Q2
This visualization displays the Iris dataset as an area chart, with each of the three flower species drawn as a separate filled region. Sepal width maps to the x-axis and sepal length to the y-axis, while a categorical color scale distinguishes species. The chart loads CSV data from a remote GitHub repository, parsing numeric fields before grouping rows by species. Using d3.scaleLinear for both axes, d3.area generates the stacked-like paths, and d3.axisBottom and d3.axisLeft render labeled axes with a legend. Data is sorted by sepal width before each path is drawn, with the SVG rendered across the full browser viewport.
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.