Skip to main content
Public

Share visualization

Loading preview…

Fork of ICE7 - REUSABLE PIE CHART VEENA

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 ICE7 - REUSABLE PIE CHART VEENA

2
Vveenachowdarykavuri@gmail.com
Last edited Apr 2, 2025
Created on Apr 2, 2025

This reusable pie chart visualizes total car sales by model across six months, aggregating raw data with d3.rollup and d3.sum to show each model's share as a colored slice. The chart renders as SVG using d3.pie and d3.arc, with labels positioned via labelArc.centroid and an interactive tooltip that displays percentage values on mouseover. A legend with a background box accompanies the pie, and the code uses d3.scaleOrdinal for color mapping and a custom PieChart class for reusability.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed