mirror of
https://github.com/dataease/dataease.git
synced 2026-06-16 11:21:44 +08:00
fix(图表): 优化折线图纵轴标签显示
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user