mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-22 17:00:08 +00:00
修复AxisLabel在数据都是小于1的浮点数时显示Label格式不对的问题
This commit is contained in:
@@ -39,6 +39,8 @@ namespace XCharts.Runtime
|
||||
|
||||
public static bool IsInteger(double value)
|
||||
{
|
||||
if (value == 0) return true;
|
||||
if (value >= -1 && value <= 1) return false;
|
||||
return Math.Abs(value % 1) <= (Double.Epsilon * 100);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user