public Series(Rdl.Runtime.Context context, SeriesGrouping grouping, Series parentSeries, string value) { _context = context; _contextState = context.ContextState; _parentSeries = parentSeries; _value = value; if (grouping.NextGrouping != null) { _seriesList = grouping.NextGrouping.GetSeriesList(context, this); } }
public void FindMinMaxValues(Rdl.Runtime.Context context, ref decimal min, ref decimal max, bool ignoreSeries) { min = 0; max = 0; // Loop through the categories and series looking for min and max data values. if (_leafCategories != null) { foreach (Category cat in _leafCategories) { if (SeriesGrouping != null && !ignoreSeries) { foreach (Series ser in SeriesGrouping.GetSeriesList(cat.Context, null).LeafSeriesList) { GetMinMax(ser.Context, ser.SeriesIndex, cat.CategoryIndex, ref min, ref max); } } else { GetMinMax(cat.Context, 0, cat.CategoryIndex, ref min, ref max); } } } else { if (SeriesGrouping != null && !ignoreSeries) { foreach (Series ser in SeriesGrouping.GetSeriesList(context, null).LeafSeriesList) { GetMinMax(ser.Context, ser.SeriesIndex, 0, ref min, ref max); } } else { GetMinMax(context, 0, 0, ref min, ref max); } } }
protected override void ParseAttribute(XmlNode attr) { base.ParseAttribute(attr); switch (attr.Name.ToLower()) { case "type": _type = (TypeEnum)Enum.Parse(typeof(TypeEnum), attr.InnerText, true); break; case "subtype": _subType = (SubtypeEnum)Enum.Parse(typeof(SubtypeEnum), attr.InnerText, true); break; case "seriesgroupings": { SeriesGrouping lastGrouping = null; foreach (XmlNode child in attr.ChildNodes) { SeriesGrouping seriesGrouping = SeriesGrouping.GetSeriesGrouping(child, this); if (_seriesGrouping == null) { _seriesGrouping = seriesGrouping; } else { lastGrouping.NextGrouping = seriesGrouping; } lastGrouping = seriesGrouping; } } break; case "categorygroupings": { CategoryGrouping lastGrouping = null; foreach (XmlNode child in attr.ChildNodes) { CategoryGrouping categoryGrouping = CategoryGrouping.GetCategoryGrouping(child, this); if (_categoryGrouping == null) { _categoryGrouping = categoryGrouping; } else { lastGrouping.NextGrouping = categoryGrouping; } lastGrouping = categoryGrouping; } } break; case "chartdata": foreach (XmlNode child in attr.ChildNodes) { _chartData.Add(new ChartSeries(child, this)); } break; case "legend": _legend = new Legend(attr, this); break; case "categoryaxis": _categoryAxis = new CategoryAxis(attr.FirstChild, this); break; case "valueaxis": _valueAxis = new ValueAxis(attr.FirstChild, this); break; case "title": _title = new Title(attr, this); break; case "pointwidth": _pointWidth = int.Parse(attr.InnerText); break; case "pallette": _palette = (Palette.PaletteEnum)Enum.Parse(typeof(Palette.PaletteEnum), attr.InnerText, true); break; case "threedproperties": _threeDProperties = new ThreeDProperties(attr, this); break; case "plotarea": _plotAreaStyle = new Style(attr.FirstChild, this); break; case "chartelementoutput": _chartElementOutput = (Enums.DataElementOutputEnum)Enum.Parse(typeof(Enums.DataElementOutputEnum), attr.InnerText, true); break; default: break; } }
public Series(Rdl.Runtime.Context context, SeriesGrouping grouping, Series parentSeries, string value, int index) : this(context, grouping, parentSeries, value) { _seriesIndex = index; }