-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Enhance chart readability with short-form notation for large numbers #11571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ishaan-jaff
merged 7 commits into
develop/usage-charts-improvements
from
large-number-display-on-graphs
Jun 10, 2025
Merged
Enhance chart readability with short-form notation for large numbers #11571
ishaan-jaff
merged 7 commits into
develop/usage-charts-improvements
from
large-number-display-on-graphs
Jun 10, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
ishaan-jaff
approved these changes
Jun 10, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
2c587c1
into
develop/usage-charts-improvements
11 checks passed
4 tasks
krrishdholakia
pushed a commit
that referenced
this pull request
Jul 8, 2025
* Enhance chart readability with short-form notation for large numbers (#11571) * format y-axis value for total tokens * format y-axis for the rest of the charts on model-activity * revert changes for requests per day * labels modified to plain text * added plain text label for api_requests and spend * minor * improve keyname display (#11573) * fix tags overlap - no need to fix decimal points for valueFormatterSpend() bcz we're only going to use it for values on the x and y axis of a chart - show only top 5 values of tags - format the values on the x-axis * format spend values to short form * format spend to short form * showing top 5 tags data more perceptively * remove mock data * remove console.log * prettier * prettier + remove unused functions
satendrakumar
pushed a commit
to satendrakumar/litellm
that referenced
this pull request
Jul 24, 2025
* Enhance chart readability with short-form notation for large numbers (BerriAI#11571) * format y-axis value for total tokens * format y-axis for the rest of the charts on model-activity * revert changes for requests per day * labels modified to plain text * added plain text label for api_requests and spend * minor * improve keyname display (BerriAI#11573) * fix tags overlap - no need to fix decimal points for valueFormatterSpend() bcz we're only going to use it for values on the x and y axis of a chart - show only top 5 values of tags - format the values on the x-axis * format spend values to short form * format spend to short form * showing top 5 tags data more perceptively * remove mock data * remove console.log * prettier * prettier + remove unused functions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Title
Enhance chart readability with short-form notation for large numbers
Relevant issues
The chart uses metrics.XXX labels on the legend and tooltip, these should be converted to plain texts e.g. if we have metrics.prompt_tokens it should be modified to “Prompt Tokens”
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
tests/litellm/
directory, Adding at least 1 test is a hard requirement - see detailsmake test-unit
Type
🐛 Bug Fix
🧹 Refactoring
Changes