Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of activity7jaswanth

Public visualization

Viewing a saved revision (read-only)

75227a9a2bbd4e08a17430a3fb5067fd

Fork of activity7jaswanth

0 stars1🌍 Public
JJaswanthkota@my.unt.edu
Last edited Nov 4, 2024
Created on Nov 4, 2024

This example shows a D3 pie chart that visualizes a CSV dataset, coloring each slice by genre category and displaying a legend. It loads data from a GitHub raw CSV file, converts string values to numbers, and uses `d3.pie` with `d3.arc` to generate SVG path slices. The chart applies a `d3.scaleOrdinal` with `d3.schemeCategory10` for colors, and adds a legend with `rect` and `text` elements, all rendered in an SVG container via D3 v6.

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.