mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-22 17:00:08 +00:00
[optimize][serie] optimize index of serieData
This commit is contained in:
@@ -61,6 +61,18 @@ namespace XCharts.Runtime
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重置serie的数据项索引。避免数据项索引异常。
|
||||
/// </summary>
|
||||
/// <param name="serieIndex"></param>
|
||||
public bool ResetDataIndex(int serieIndex)
|
||||
{
|
||||
var serie = GetSerie(serieIndex);
|
||||
if (serie != null)
|
||||
return serie.ResetDataIndex();
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool CanAddSerie<T>() where T : Serie
|
||||
{
|
||||
return CanAddSerie(typeof(T));
|
||||
|
||||
Reference in New Issue
Block a user