Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

assignment 2 VK

Public visualization

Viewing a saved revision (read-only)

78016729d1914904b8186403394e6033

assignment 2 VK

0 stars0🌍 Public
Vvikramkotlo9@gmail.com
Last edited Apr 6, 2024
Created on Apr 6, 2024
Forked from Hello VizHub

This example displays a pie chart that visualizes the distribution of species counts from the Iris dataset. The chart uses D3 v7 to load the CSV data, count occurrences of each species, and render SVG arcs with a categorical color scale. A legend accompanies the chart, and axis labels for "Species" and "Count" are added despite being atypical for pie charts. The code demonstrates d3.csv, d3.pie, d3.arc, and d3.scaleOrdinal with d3.schemeCategory10.

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.