Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Hotel occupation scatter Plot

Public visualization

Viewing a saved revision (read-only)

b4bec21e33bd471987321ffd88b653c2

Hotel occupation scatter Plot

1 star0🌍 Public
MMarcelo
Last edited May 11, 2021
Created on Apr 13, 2021

This scatter plot shows hotel room occupation rates for six amenities (spa, pool, restaurant, bar, beach, gym) across user-selectable time zones or weekdays. The D3 v5 visualization loads CSV data and renders animated circles whose size reflects each amenity's capacity and whose color encodes the amenity type via `schemeCategory10`. A dropdown menu dynamically re-renders the scatter plot, switching between hourly and daily time domains using `scaleBand` and `scaleLinear` axes. Interactive tooltips display amenity and occupation percentage on mouseover, while the legend lists amenities sorted by capacity.

AI-generated description

Hotel occupation using D3 library. Marcelo Rocha