Skip to main content
100%

Fork of Fork of Making a Donut chart - project

✓ Published0🌍 Public
Kkakumanusreya
Last edited Apr 26, 2023
Created on Apr 26, 2023

This donut chart shows the number of booking changes across five hotel market segments—Direct, Corporate, Online TA, Offline TA/TO, and Complementary—with each segment’s value multiplied by 1,000 from the CSV data. The visualization uses D3 v5’s `pie` and `arc` generators to compute the donut geometry, with a `scaleOrdinal` mapping segment names to categorical colors. Labels are positioned via `labelArc.centroid()`, and the chart is rendered as SVG, with the CSV loaded using `d3.csv`. The text labels are styled with white fill and a sans-serif font.

AI-generated description
MIT Licensed

Similar vizzes