Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(web): keep first query outcomes axis label inside chart (#45632)

Stephen Zhou0ec025391450
diff --git a/web/features/new-rag/overview/query-outcomes-chart-options.ts b/web/features/new-rag/overview/query-outcomes-chart-options.ts
index dd6d51fc6e4..91938ba65cd 100644
--- a/web/features/new-rag/overview/query-outcomes-chart-options.ts
+++ b/web/features/new-rag/overview/query-outcomes-chart-options.ts
@@ -30,7 +30,15 @@ export function buildQueryOutcomesChartOptions({
return {
animationDuration: 250,
color: ['#0033ff', '#bdb4fe', '#f79009'],
- grid: { bottom: 18, containLabel: true, left: 0, right: 24, top: 42 },
+ // Legacy containLabel ignores the first x-axis label's overflow past the y-axis on narrow cards.
+ grid: {
+ bottom: 18,
+ left: 0,
+ outerBoundsContain: 'axisLabel',
+ outerBoundsMode: 'same',
+ right: 24,
+ top: 42,
+ },
legend: {
icon: 'circle',
itemHeight: 7,