Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task 9 Pie Chart

Public visualization

Viewing a saved revision (read-only)

1da2d771a9c04e16a086bada17090df3

Task 9 Pie Chart

0 stars3🌍 Public
Mmrowanh21@gmail.com
Last edited Apr 30, 2024
Created on Apr 26, 2024

This pie chart visualizes the top 10 records from a diabetes dataset, sorted by SkinThickness, with each slice labeled by Glucose level and its corresponding SkinThickness value on a white background. Built with D3.js v6, the visualization uses `d3.pie()` and `d3.arc()` to generate slices, a color scale for slice fills, and includes a legend with a custom color palette. Data is loaded asynchronously via `d3.csv` from a GitHub gist, and the chart is rendered as an SVG with centered labels on each arc.

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.