Skip to main content
Public

Share visualization

Loading preview…

Pie Chart by Tejaswi Tummala

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

Pie Chart by Tejaswi Tummala

0
Tttummala17
Last edited Jul 1, 2022
Created on Jul 1, 2022

This pie chart visualizes electric vehicle sales in the USA for 2021, using a CSV dataset from a GitHub gist. The chart, built with d3.v5, renders each car model as a colored slice with sales values labeled in thousands, and includes a legend mapping colors to car names. It uses d3.pie, d3.arc, and d3.scaleOrdinal to generate the arcs and colors, while the SVG is selected via d3.select.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed