mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-22 08:50:10 +00:00
3.0
This commit is contained in:
@@ -109,26 +109,6 @@ namespace XCharts.Runtime
|
||||
return SerieHelper.GetItemColor(destSerie, destSerieData, chart.theme, index, false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 同堆叠的serie是否有渐变色的。
|
||||
/// </summary>
|
||||
/// <param name="stack"></param>
|
||||
/// <returns></returns>
|
||||
public static bool IsAnyGradientSerie(List<Serie> series, string stack)
|
||||
{
|
||||
if (string.IsNullOrEmpty(stack)) return false;
|
||||
foreach (var serie in series)
|
||||
{
|
||||
if (serie.show && serie.areaStyle != null && serie.areaStyle.show && stack.Equals(serie.stack))
|
||||
{
|
||||
if (!ChartHelper.IsValueEqualsColor(serie.areaStyle.color, serie.areaStyle.toColor)
|
||||
&& !ChartHelper.IsClearColor(serie.areaStyle.toColor))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 是否有需裁剪的serie。
|
||||
/// </summary>
|
||||
@@ -142,18 +122,6 @@ namespace XCharts.Runtime
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool IsAnyUpdateAnimationSerie(List<Serie> series)
|
||||
{
|
||||
foreach (var serie in series)
|
||||
{
|
||||
if (serie.animation.enable && serie.animation.dataChangeEnable)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得上一个同堆叠且显示的serie。
|
||||
/// </summary>
|
||||
@@ -170,17 +138,6 @@ namespace XCharts.Runtime
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得上一个同堆叠且显示的serie。
|
||||
/// </summary>
|
||||
/// <param name="index"></param>
|
||||
/// <returns></returns>
|
||||
public static Serie GetLastStackSerie(List<Serie> series, int index)
|
||||
{
|
||||
var serie = series[index];
|
||||
return GetLastStackSerie(series, serie);
|
||||
}
|
||||
|
||||
public static Serie GetSerieByVesselIndex(List<Serie> series, int vesselIndex)
|
||||
{
|
||||
foreach (var serie in series)
|
||||
|
||||
Reference in New Issue
Block a user