Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Fix Y-axis labels overlap on Spend per Tag (#12754)

tanjiro657ca3b81a0f
diff --git a/ui/litellm-dashboard/src/components/entity_usage.tsx b/ui/litellm-dashboard/src/components/entity_usage.tsx
index 9f5ec20282e..bd12bb256b5 100644
--- a/ui/litellm-dashboard/src/components/entity_usage.tsx
+++ b/ui/litellm-dashboard/src/components/entity_usage.tsx
@@ -514,8 +514,8 @@ const EntityUsage: React.FC<EntityUsageProps> = ({
<Col numColSpan={1}>
<BarChart
className="mt-4 h-52"
- data={getEntityBreakdown()}
- index="metadata.alias"
+ data={getProcessedEntityBreakdownForChart()}
+ index="metadata.alias_display"
categories={["metrics.spend"]}
colors={["cyan"]}
valueFormatter={valueFormatterSpend}
@@ -633,7 +633,7 @@ const EntityUsage: React.FC<EntityUsageProps> = ({
<BarChart
className="mt-4 h-40"
data={getTopModels()}
- index="key"
+ index="display_key"
categories={["spend"]}
colors={["cyan"]}
valueFormatter={(value) =>