🌍 Public
Viewing a saved revision (read-only)
45cb09afcd2b4a2f807999304fed0899
Bar Chart
This example presents a series of pie charts analyzing hotel booking data from a cleaned.csv file. The first chart displays the average price per year, while the second shows the count of bookings per year. Using D3 v6 with SVG rendering, the code applies d3.pie and d3.arc to generate pie slices, d3.scaleOrdinal with d3.schemeCategory10 for coloring, and d3.group for data aggregation. Hover interactions scale slices and change their fill color.
AI-generated descriptionA demonstration of how to start using D3 version 6.