Skip to main content
Public

Share visualization

Loading preview…

project-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

project-Pie chart

2
Rrajasrilekkala
Last edited Apr 8, 2023
Created on Apr 8, 2023
Forked from Pie Chart

This pie chart visualizes the percentage of canceled hotel bookings across different countries, with each slice labeled and a corresponding legend. The chart is rendered as an SVG using D3 v5, leveraging `pie` for arc generation, `arc` for path geometry, and `scaleOrdinal` for slice colors. Data is loaded asynchronously from a CSV file via `d3.csv` from a GitHub Gist, and the total cancellation percentage is computed before rendering.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed