fix(图表): 优化折线图纵轴标签显示

This commit is contained in:
wisonic-s
2025-09-29 13:59:29 +08:00
committed by wisonic-s
parent 6a7f57ea4b
commit cf6556d70d
2 changed files with 3 additions and 9 deletions

View File

@@ -391,15 +391,7 @@ export class Line extends G2ChartView {
gridStrokeOpacity: 1,
gridLineWidth: yAxis.splitLine.lineStyle.width,
gridLineDash,
transform: yAxis.axisLabel.rotate
? [
{
type: 'rotate',
optionalAngles: [yAxis.axisLabel.rotate],
recoverWhenFailed: false
}
]
: [],
labelTransform: `rotate(${yAxis.axisLabel.rotate || 0})`,
labelFormatter: d => {
return valueFormatter(d, yAxis.axisLabelFormatter)
}

View File

@@ -24,6 +24,8 @@ public class TableHeader {
public class ColumnInfo {
@Getter
private String field;
@Getter
private String title;
private List<ColumnInfo> children = new ArrayList<>();
private Integer width;
}