Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

task 9 Q1

Public visualization

task 9 Q1

0 stars0🌍 Public
Ppavanpkkalyan3@gmail.com
Last edited Apr 22, 2024
Created on Apr 22, 2024

This example displays a pie chart with a legend, using a dataset fetched from a GitHub-hosted CSV. Each sector of the pie represents a percentage value, and the legend lists the sector names alongside their corresponding percentages. The visualization is built with D3 v6, employing the `d3.pie` and `d3.arc` APIs for the chart itself, while the legend is constructed as a separate SVG element. Data is loaded asynchronously via `d3.csv`, and colors are assigned using a Tableau10 color scheme.

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.

Comments

Sign in to join the discussion.

MIT Licensed