mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-25 18:30:14 +00:00
完善Legend的formatter对多Serie的支持 (#332)
This commit is contained in:
@@ -132,6 +132,21 @@ namespace XCharts.Runtime
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// check if series has any serie which is color by data.
|
||||
/// || 是否有任何一个系列是按数据颜色的。
|
||||
/// </summary>
|
||||
/// <param name="series"></param>
|
||||
/// <returns></returns>
|
||||
public static bool IsAnyColorByDataSerie(List<Serie> series)
|
||||
{
|
||||
foreach (var serie in series)
|
||||
{
|
||||
if (serie.defaultColorBy == SerieColorBy.Data) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得上一个同堆叠且显示的serie。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user