Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ass2q1

Public visualization

Viewing a saved revision (read-only)

200903e8273948f099fc933c07534092

ass2q1

0 stars0🌍 Public
Ttsumanth619@gmail.com
Last edited Apr 13, 2024
Created on Apr 13, 2024
Forked from Hello VizHub

This example renders a pie chart of automotive product sales data for April 2024, sourced from a CSV file via GitHub Gist. Each slice represents an item category, with its total sales value labeled directly on the chart and repeated in a legend. The visualization uses D3 v5’s `pie` and `arc` generators to compute and draw the slices, while `scaleOrdinal` assigns colors and `format` styles the numeric labels. The SVG output is generated within an HTML page, styled with custom CSS for the legend and text.

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.