修复数据过小时AxisLabel直接科学计数法显示的问题

This commit is contained in:
monitor1394
2019-12-06 10:08:48 +08:00
parent fe19a3a665
commit a890c7cd33
5 changed files with 14 additions and 9 deletions

View File

@@ -513,7 +513,8 @@ namespace XCharts
count++;
intvalue = (int)(value * Mathf.Pow(10, count));
}
return count;
if (count == 12 && (value == 0 || value == 1)) return 1;
else return count;
}
public static void AddEventListener(GameObject obj, EventTriggerType type,