Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Ques1

Public visualization

Viewing a saved revision (read-only)

a8a4107724874c8e9680811c28508825

Ques1

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

This pie chart visualizes the count of sales across different regions from a CSV dataset. The pie slices show sales values in thousands, with a legend on the right identifying each region and its corresponding value. The chart uses D3 v5, including the `pie` and `arc` functions to generate segments and compute centroids for labels. Data is fetched asynchronously using `d3.csv`, and colors are mapped via `scaleOrdinal`, with axis labels added manually via SVG text elements.

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.