增加折线图对数轴Log的支持

This commit is contained in:
monitor1394
2020-01-15 19:41:21 +08:00
parent 892b84829d
commit c4f95d3c4f
10 changed files with 18626 additions and 4280 deletions

View File

@@ -146,18 +146,18 @@ namespace XCharts
/// <summary>
/// reutrn true when all the show axis is `Value` type.
/// 纯数值坐标。
/// 纯数值坐标轴(数值轴或对数轴)
/// </summary>
/// <returns></returns>
public bool IsValue()
{
foreach (var axis in m_XAxises)
{
if (axis.show && !axis.IsValue()) return false;
if (axis.show && !axis.IsValue() && !axis.IsLog()) return false;
}
foreach (var axis in m_YAxises)
{
if (axis.show && !axis.IsValue()) return false;
if (axis.show && !axis.IsValue() && !axis.IsLog()) return false;
}
return true;
}