internal static ClientChartSeries CreateClientSeries(this OlapChartSeries cs) { var ccs = new ClientChartSeries(); ccs.Details = cs.Data.Select(e => e.CreateClientDetails()).ToArray(); if (cs.fColorMember != null) { ccs.ColorMember = cs.fColorMember.UniqueName; } if (cs.fSizeMember != null) { ccs.SizeMember = cs.fSizeMember.UniqueName; } if (cs.fShapeMember != null) { ccs.ShapeMember = cs.fShapeMember.UniqueName; } if (cs.fMeasure != null) { ccs.Measure = cs.fMeasure.UniqueName; } return(ccs); }
private static int CompareSeriesByFirstDetailsXValue(OlapChartSeries x, OlapChartSeries y) { var comparer = new ChartCellDetails.XLabelComparer(); return(comparer.Compare(x.Data[0], y.Data[0])); }