fix(图表): 修复散点图横轴标签自动旋转

This commit is contained in:
wisonic-s
2025-09-23 14:50:29 +08:00
committed by wisonic-s
parent e05e650673
commit d9b815cb39

View File

@@ -400,15 +400,7 @@ export class Scatter extends G2ChartView {
gridStrokeOpacity: 1,
gridLineWidth: xAxis.splitLine.lineStyle.width,
gridLineDash,
transform: xAxis.axisLabel.rotate
? [
{
type: 'rotate',
optionalAngles: [xAxis.axisLabel.rotate],
recoverWhenFailed: false
}
]
: []
labelTransform: `rotate(${xAxis.axisLabel.rotate || 0})`
}
}
}