From ee1fc5ac11191b92a1342266fbdcac44727601a1 Mon Sep 17 00:00:00 2001 From: ulleo Date: Tue, 22 Jul 2025 19:10:21 +0800 Subject: [PATCH] feat: charts css --- frontend/src/views/chat/component/charts/Bar.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/chat/component/charts/Bar.ts b/frontend/src/views/chat/component/charts/Bar.ts index 339049fa..031b9605 100644 --- a/frontend/src/views/chat/component/charts/Bar.ts +++ b/frontend/src/views/chat/component/charts/Bar.ts @@ -70,7 +70,17 @@ export class Bar extends BaseG2Chart { labelAutoWrap: true, labelAutoEllipsis: true, }, - y: { title: y[0].name }, + y: { + title: y[0].name, + labelFontSize: 12, + labelAutoHide: { + type: 'hide', + keepHeader: true, + }, + labelAutoRotate: false, + labelAutoWrap: true, + labelAutoEllipsis: true, + }, }, scale: { x: {