- Preview
- Fictional hotel bookings ranked by room nights or revenue.
- Inputs
- Supply stable IDs, labels, non-negative room nights and non-negative revenue in the same currency’s major units. Give commissionRate as a ratio between 0 and 1, or omit it when unknown. Zero reports a known fee-free channel.
- Source options
- Aggregate room nights and revenue by channel over one reporting window. Convert monetary amounts to the same currency and units before passing them in.
- Actions
- Switch between Room nights and Revenue to rerank the chart and list. A selected channel stays selected when switching metrics. All channels restores the totals.
- Integration requirements
- Totals keep the nights and revenue of channels with unknown commission. The aggregate commission is revenue-weighted and shown only when every channel with positive revenue has a known rate. A zero total has no percentage share.
[
{
"id": "direct",
"name": "Direct",
"nights": 64,
"revenue": 9100,
"commissionRate": 0
},
{
"id": "partner",
"name": "Travel Partner",
"nights": 40,
"revenue": 10500,
"commissionRate": 0.15
}
]