fix(bubble): Fix Bubble chart axis label rotation (#38917)

This commit is contained in:
Jessica Morris
2026-03-31 13:13:54 -04:00
committed by GitHub
parent daefedebcd
commit f6cd8066ab

View File

@@ -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',