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

4
Ppriyankachary1701@gmail.com
Last edited Oct 26, 2025
Created on Oct 26, 2025
Forked from HTML Starter

This pie chart visualizes the total borrow count by genre, with each slice's size proportional to the genre's cumulative borrows from the Library_book.csv dataset. The chart displays a legend to the right of the visualization, listing each genre with its corresponding total value. Built with D3 v7, the code uses `d3.pie` to compute slice geometry, `d3.arc` for path rendering, and `d3.rollup` to aggregate the data by genre. The visualization is rendered as an SVG, with slices filled using a concatenated color scheme of `schemeTableau10` and `schemeSet3`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed