Skip to main content
Public

Share visualization

Loading preview…

Fork of Pie Chart

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 Pie Chart

0
GGogineni44
Last edited Mar 29, 2023
Created on Mar 29, 2023
Forked from Pie Chart

This example presents a pie chart visualizing the basic cost of Netflix across ten countries, with a legend listing each country's name and corresponding price. The chart uses D3 v5 to load CSV data from a GitHub gist, sorts it in descending order, and renders the slices using the `pie` and `arc` APIs. It employs a categorical color scale from `scaleOrdinal` and `schemeCategory10`, and attaches mouseover handlers for console logging. The visualization is built with React, SVG, and CSS styling for the title and legend text.

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