From 5980ec929ee01ca905421fa15496e08616011ecc Mon Sep 17 00:00:00 2001 From: Murali Date: Wed, 24 Jan 2024 15:51:04 +0530 Subject: [PATCH] fix: yAxis label collides with yAxis name #2471 --- .../src/components/chart/chartOptions/axes/yAxis.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-components/src/components/chart/chartOptions/axes/yAxis.ts b/packages/react-components/src/components/chart/chartOptions/axes/yAxis.ts index 8e39eee8a..db1708f98 100644 --- a/packages/react-components/src/components/chart/chartOptions/axes/yAxis.ts +++ b/packages/react-components/src/components/chart/chartOptions/axes/yAxis.ts @@ -20,5 +20,6 @@ export const convertYAxis = ( formatter: (value: number) => `${round(value, significantDigits)}`, }, nameLocation: 'middle', - nameGap: 30, + //TODO: Increased nameGap to solve label collides with y-axis issue, but the issue is in echarts and waiting for this(https://github.com/apache/echarts/issues/9265) CR to be merged from echart team. + nameGap: 38, });