Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie Chart - Task 9

Public visualization

Viewing a saved revision (read-only)

5e839b3bf05e486b8ec3e689cdfc15bb

Pie Chart - Task 9

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

This pie chart visualizes total sales across six product categories, with each slice representing a category’s contribution to overall revenue. The chart is rendered on an HTML canvas element using Chart.js, which fetches CSV data from a remote GitHub gist. The code parses the file, extracting item categories and total sales values, then applies semi-transparent background colors and a border width to each slice. The chart is non-responsive, with a fixed 400×400 canvas size, and includes a title displayed above the visualization.

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.