Skip to content

Conversation

@bradchoate
Copy link
Collaborator

  • Changed user statistic presentation to format larger numbers in abbreviated formats to avoid overflowing the allocated screen space.

  • Revert server side approach, and perform any calculations and formatting in the browser instead.

This reverts commit 1331d72.

  • Implemented formatting on the client, incorporating user feedback to priovide more precision. Also took the opportunity to leverage built in toLocaleString for tooltip display value.

  • Based on feedback, have adjusted to display anything >= 10,000 using suffixes and truncated to 1 decimal place max. Anything below 10,000 is returned verbatim as a localised string.

* Changed user statistic presentation to format larger numbers in abbreviated formats to avoid overflowing the allocated screen space.

* Revert server side approach, and perform any calculations and formatting in the browser instead.

This reverts commit 1331d72.

* Implemented formatting on the client, incorporating user feedback to priovide more precision. Also took the opportunity to leverage built in toLocaleString for tooltip display value.

* Based on feedback, have adjusted to display anything >= 10,000 using suffixes and truncated to 1 decimal place max. Anything below 10,000 is returned verbatim as a localised string.
@bradchoate bradchoate merged commit 1ab32c8 into master Sep 1, 2025
4 checks passed
@bradchoate bradchoate deleted the xxl-stats-formatting branch September 1, 2025 16:09
@jessamynwest
Copy link
Contributor

This looks really good!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants