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

This commit is contained in:
wisonic-s
2025-09-09 16:01:26 +08:00
committed by wisonic-s
parent 8aed93f847
commit e70a12011d
2 changed files with 2 additions and 18 deletions

View File

@@ -344,15 +344,7 @@ export class Area 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})`
}
}
}

View File

@@ -336,15 +336,7 @@ export class Line 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})`
}
}
}