mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-19 23:10:06 +00:00
增加AxisLabel的showZeroLabel设置是否显示0刻度
This commit is contained in:
@@ -461,7 +461,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
var textStyle = axis.axisLabel.textStyle;
|
||||
var label = AddChartLabel(name, parent, axis.axisLabel, theme, content, autoColor, autoAlignment);
|
||||
var labelShow = axis.IsNeedShowLabel(index, total);
|
||||
var labelShow = axis.IsNeedShowLabel(index, total, content);
|
||||
label.UpdateIcon(axis.axisLabel.icon, axis.GetIcon(index), iconDefaultColor);
|
||||
label.text.SetActive(labelShow);
|
||||
return label;
|
||||
|
||||
Reference in New Issue
Block a user