Fork of Fork of Making a Donut chart - project
✓ Published0🌍 Public
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 descriptionMIT Licensed