/// <summary> /// Returns whether the chart has any series from a group of series defined by ChartTypeGroup. /// </summary> /// <param name="chart"></param> /// <param name="group">ChartTypeGroup to check for.</param> /// <returns></returns> public static bool HasAnySeriesOfTypeGroup(this PxChart chart, ChartTypeGroup group) { //return chart.Series.Any(s => group.Contains(s.ChartType)); return(chart.ChartTypes.Any(t => group.Contains(t))); }
/// <summary> /// Returns whether the chart has any values that has decimals. /// </summary> /// <param name="c"></param> /// <returns></returns> public static bool HasDecimalValues(this PxChart c) { return (c.Series.Any(s => s.Points.Any(p => p.YValues.Any(v => v.HasDecimals())))); }