Skip to main content
100%

Hotel Reservation Tree

✓ Published2🌍 Public
0007ebey
Last edited Apr 8, 2020
Created on Feb 27, 2020
Forked from Lesson 2

This visualization shows the total lead time for each reserved room type across Resort hotels worldwide, organized hierarchically by hotel and country. The data comes from a World Bank CSV file and is processed using D3 v5’s `nest` and `tree` functions to build a stratified tree layout. Each leaf node is a colored circle, where color maps the aggregate lead-time value via `scaleLinear` from green to red, and horizontal links are drawn with `linkHorizontal`. Text labels display hotel, country, and room type names, with font sizes adjusted by depth. The SVG canvas supports interactive zooming through the `zoom` event.

AI-generated description

A bare minimum HTML page.

See also React Starter.

This data was taken from The world bank data website

MIT Licensed

Similar vizzes