Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Question1_PieChart

Public visualization

Viewing a saved revision (read-only)

4a19c3df41144408814e6f51c3992c1e

Question1_PieChart

0 stars0🌍 Public
PPadmajaKodati@my.unt.edu
Last edited Apr 12, 2024
Created on Apr 12, 2024
Forked from Hello VizHub

This pie chart displays the proportional distribution of 30 car brands by their reported values. Each slice is sized according to its numeric value, with labels positioned at the slice centroids. A legend lists the brands and their corresponding colors. Created with D3 v7, the visualization uses `d3.pie()` to compute arc data, `d3.arc()` to generate the SVG paths, and `d3.scaleOrdinal` with `schemeCategory10` for coloring. The SVG container is centered, with labels rendered as text elements and the legend manually constructed.

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.