private void PrepareWeight() { if (!View.ActualSeries.Any(x => x is IScatterSeriesView || x is IHeatSeriesView)) return; var vs = View.ActualSeries .Select(x => x.ActualValues.GetTracker(x).WLimit) .DefaultIfEmpty(new CoreLimit()).ToArray(); WLimit = new CoreLimit(vs.Select(x => x.Min).DefaultIfEmpty(0).Min(), vs.Select(x => x.Max).DefaultIfEmpty(0).Max()); }
private void PrepareWeight() { if (!ActualSeries.Any(x => x is IBubbleSeriesView || x is IHeatSeriesView)) return; var vs = ActualSeries.Select(x => x.ActualValues.Limit3).ToArray(); Value3CoreLimit = new CoreLimit(vs.Select(x => x.Min).DefaultIfEmpty(0).Min(), vs.Select(x => x.Max).DefaultIfEmpty(0).Max()); }