Skip to main content
Public

Share visualization

Loading preview…

ICE 7 : Task 2 (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

ICE 7 : Task 2 (Pie Chart)

0
NNITIN0601
Last edited Mar 28, 2022
Created on Mar 23, 2022
Forked from ICE 6 : Task 1

A pie chart displays year-wise Tesla sales from a CSV file, with each slice labeled by year and accompanied by a legend showing both year and sales values. The visualization uses d3.csv to load data, d3.layout.pie to compute arc angles, and d3.svg.arc for slice rendering. Ordinal scales assign categorical colors, while SVG groups position arcs, text labels, and legend rectangles. The chart is built with d3.v3 inside an HTML page with React components managing the state and rendering the SVG output.

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