Skip to main content
Public

Share visualization

Loading preview…

tarun_kumar_pieChart

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

tarun_kumar_pieChart

0
TTarun Kumar Bosupally
Last edited Mar 28, 2024
Created on Mar 28, 2024

This pie chart displays the number of car units sold for various car models, with each slice representing a different car and its corresponding sales figure. The chart uses a categorical color scheme, assigning distinct colors to each car model, and includes a legend on the right side showing the car names alongside their sales values. The visualization is built using D3.js v5, specifically leveraging the `d3.pie` and `d3.arc` functions to generate the pie slices and the `d3.scaleOrdinal` for color mapping. The data is loaded from an external CSV file containing car names and their unit sales. The chart is rendered as an SVG with a fixed width and height, and the legend labels and values are formatted using D3's `format` function for readability.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed