mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-22 17:00:08 +00:00
增加BarChart和HeatmapChart可通过ignore参数设置忽略数据的支持
This commit is contained in:
@@ -1516,12 +1516,25 @@ namespace XCharts
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool IsIngoreValue(float value)
|
||||
public bool IsIgnoreIndex(int index, int dimension)
|
||||
{
|
||||
if (m_Ignore)
|
||||
{
|
||||
var serieData = GetSerieData(index);
|
||||
if (serieData != null)
|
||||
{
|
||||
return IsIgnoreValue(serieData.GetData(dimension));
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool IsIgnoreValue(float value)
|
||||
{
|
||||
return m_Ignore && Mathf.Approximately(value, m_IgnoreValue);
|
||||
}
|
||||
|
||||
public bool IsIngorePoint(int index)
|
||||
public bool IsIgnorePoint(int index)
|
||||
{
|
||||
if (index >= 0 && index < dataPoints.Count)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user