Skip to main content
100%

Bar Chart

✓ Published0🌍 Public
Kkakumanusreya
Last edited Apr 18, 2023
Created on Apr 18, 2023
Forked from D3 Starter

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 description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes