Skip to main content
100%

Fork of Making a Donut chart - project

✓ Published1🌍 Public
Rrajasrilekkala
Last edited Apr 9, 2023
Created on Apr 9, 2023
Forked from Making a Pie Chart

This donut chart shows booking changes across five hotel market segments—Direct, Corporate, Online TA, Offline TA/TO, and Complementary—using a pink background and colored arcs. The code loads data from a CSV file, multiplies booking changes by 1,000, and renders an SVG via d3.pie and d3.arc, with d3.scaleOrdinal assigning distinct colors. Segment labels are placed inside the ring using a separate labelArc and text elements. The visualization uses D3 v5 and a data-driven approach to highlight relative booking volumes.

AI-generated description
MIT Licensed

Similar vizzes