mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-24 18:00:26 +00:00
增加Bar的realtimeSort支持实时排序
This commit is contained in:
@@ -101,20 +101,22 @@ namespace XCharts.Runtime
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool HasRealtimeSortSerie()
|
||||
public bool HasRealtimeSortSerie(int gridIndex)
|
||||
{
|
||||
foreach (var serie in m_Series)
|
||||
{
|
||||
if (!CheckSerieGridIndex(serie, gridIndex)) continue;
|
||||
if (serie.useSortData)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public Serie GetRealtimeSortSerie()
|
||||
public Serie GetRealtimeSortSerie(int gridIndex)
|
||||
{
|
||||
foreach (var serie in m_Series)
|
||||
{
|
||||
if (!CheckSerieGridIndex(serie, gridIndex)) continue;
|
||||
if (serie.useSortData)
|
||||
return serie;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user