Skip to main content
Public

Share visualization

Loading preview…

Fork of Fork of ICE - 7 Pie Chart FOR MARkS

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Fork of ICE - 7 Pie Chart FOR MARkS

0
IIndhuKrishnaraj
Last edited Mar 13, 2023
Created on Mar 13, 2023

This example displays a pie chart visualizing student marks based on hours spent studying, with each slice labeled by GPA value. It uses D3.js v5 to load CSV data from a GitHub gist, compute pie segments with `d3.pie` and `d3.arc`, and render SVG paths and text. A legend pairs study hours with GPA values, colored via `d3.scaleOrdinal`. The visualization updates dynamically after fetching and parsing the data asynchronously.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed