mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-20 15:30:09 +00:00
修复YAxis的Label可能会重复的问题
This commit is contained in:
@@ -355,11 +355,11 @@ namespace XCharts.Runtime
|
||||
{
|
||||
if (Math.Abs(maxValue) >= Math.Abs(minValue))
|
||||
{
|
||||
newNumericFormatter = MathUtil.IsInteger(maxValue) ? "f0" : "f" + MathUtil.GetPrecision(maxValue);
|
||||
newNumericFormatter = MathUtil.IsInteger(maxValue) ? "0.#" : "f" + MathUtil.GetPrecision(maxValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
newNumericFormatter = MathUtil.IsInteger(minValue) ? "f0" : "f" + MathUtil.GetPrecision(minValue);
|
||||
newNumericFormatter = MathUtil.IsInteger(minValue) ? "0.#" : "f" + MathUtil.GetPrecision(minValue);
|
||||
}
|
||||
}
|
||||
if (string.IsNullOrEmpty(m_Formatter))
|
||||
|
||||
Reference in New Issue
Block a user