From fa6801a525cb19df2b23311474d916e911099990 Mon Sep 17 00:00:00 2001 From: Jessica Morris Date: Tue, 31 Mar 2026 13:13:54 -0400 Subject: [PATCH] fix(bubble): Fix Bubble chart axis label rotation (#38917) (cherry picked from commit f6cd8066ababd5e6e2e143c6311089264af59664) --- .../plugin-chart-echarts/src/Bubble/transformProps.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/Bubble/transformProps.ts b/superset-frontend/plugins/plugin-chart-echarts/src/Bubble/transformProps.ts index 1f11498a358..2ffeaebf2ab 100644 --- a/superset-frontend/plugins/plugin-chart-echarts/src/Bubble/transformProps.ts +++ b/superset-frontend/plugins/plugin-chart-echarts/src/Bubble/transformProps.ts @@ -207,13 +207,12 @@ export default function transformProps(chartProps: EchartsBubbleChartProps) { const echartOptions: EChartsCoreOption = { series, xAxis: { - axisLabel: { formatter: xAxisFormatter }, + axisLabel: { formatter: xAxisFormatter, rotate: xAxisLabelRotation }, splitLine: { lineStyle: { type: 'dashed', }, }, - nameRotate: xAxisLabelRotation, interval: xAxisLabelInterval, scale: true, name: bubbleXAxisTitle, @@ -226,13 +225,12 @@ export default function transformProps(chartProps: EchartsBubbleChartProps) { ...getMinAndMaxFromBounds(xAxisType, truncateXAxis, xAxisMin, xAxisMax), }, yAxis: { - axisLabel: { formatter: yAxisFormatter }, + axisLabel: { formatter: yAxisFormatter, rotate: yAxisLabelRotation }, splitLine: { lineStyle: { type: 'dashed', }, }, - nameRotate: yAxisLabelRotation, scale: truncateYAxis, name: bubbleYAxisTitle, nameLocation: 'middle',