GameScoreHistogram
- buckets
.buckets
number Defaults to 80.
- .resultCallback(shell)
- .define(tag, registry)
- .subscribe(context, callback)
- pending-task
PendingTaskEvent
- Wraps the histogram data fetch for loading coordination
| Part | Description |
label | The top row showing player count and percentile |
bars | The bar chart container |
axis | The bottom "Better / Worse" labels |
Displays a bar chart of the full score distribution from the score service, with a "You" marker at the player's score and a "Top N%" label.
- buckets
.buckets
-
long -- Number of histogram buckets to request from the score API. More buckets = finer resolution. Defaults to 80.
| Property |
Default |
Description |
--game-accent |
#3b82f6 |
Colour of the "You" bar and label |
<game-score-histogram></game-score-histogram>
<game-score-histogram buckets="20"></game-score-histogram>