Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

task9

Public visualization

Viewing a saved revision (read-only)

fab7f69d96204f17a8dfae897b5e9bad

task9

0 stars1🌍 Public
Aasheshpinisetti@my.unt.edu
Last edited Apr 28, 2024
Created on Apr 28, 2024
Forked from Hello VizHub

This example visualizes the distribution of flower species in the Iris dataset as a pie chart, with a color-coded legend displayed beside the chart. It uses D3 v7 to load CSV data via `d3.csv`, aggregate counts with `d3.rollups`, and render SVG arc paths generated by `d3.pie` and `d3.arc`. Colors are assigned through `d3.scaleOrdinal` with `d3.schemeCategory10`, and the legend is built dynamically in HTML with styled divs.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.