mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-21 16:00:24 +00:00
增加TextLimit组件可以设置AxisLabel的文本自适应
This commit is contained in:
@@ -918,6 +918,7 @@ namespace XCharts
|
||||
"x1","x2","x3","x4","x5"
|
||||
}
|
||||
};
|
||||
axis.axisLabel.textLimit.enable = true;
|
||||
return axis;
|
||||
}
|
||||
}
|
||||
@@ -968,6 +969,7 @@ namespace XCharts
|
||||
m_BoundaryGap = false,
|
||||
m_Data = new List<string>(5),
|
||||
};
|
||||
axis.axisLabel.textLimit.enable = false;
|
||||
return axis;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user