internal ChartSeries(ReportDefn r, ReportLink p, XmlNode xNode) : base(r, p) { _Datapoints = null; _PlotType = PlotTypeEnum.Auto; _YAxis = "Left"; _NoMarker = false; _LineSize = "Regular"; // Loop thru all the child nodes foreach (XmlNode xNodeLoop in xNode.ChildNodes) { if (xNodeLoop.NodeType != XmlNodeType.Element) { continue; } switch (xNodeLoop.Name) { case "DataPoints": _Datapoints = new DataPoints(r, this, xNodeLoop); break; case "PlotType": _PlotType = Engine.PlotType.GetStyle(xNodeLoop.InnerText, OwnerReport.rl); break; case "YAxis": case "fyi:YAxis": _YAxis = xNodeLoop.InnerText; break; case "NoMarker": case "fyi:NoMarker": _NoMarker = Boolean.Parse(xNodeLoop.InnerText); break; case "LineSize": case "fyi:LineSize": _LineSize = xNodeLoop.InnerText; break; case "fyi:Color": case "Color": case "Colour": _Colour = xNodeLoop.InnerText; break; default: // don't know this element - log it OwnerReport.rl.LogError(4, "Unknown ChartSeries element '" + xNodeLoop.Name + "' ignored."); break; } } if (_Datapoints == null) { OwnerReport.rl.LogError(8, "ChartSeries requires the DataPoints element."); } }
String _YAxis; //Indicates if the series uses the left or right axis. GJL 140208 #endregion Fields #region Constructors internal ChartSeries(ReportDefn r, ReportLink p, XmlNode xNode) : base(r, p) { _Datapoints=null; _PlotType=PlotTypeEnum.Auto; _YAxis = "Left"; _NoMarker = false; _LineSize = "Regular"; // Loop thru all the child nodes foreach(XmlNode xNodeLoop in xNode.ChildNodes) { if (xNodeLoop.NodeType != XmlNodeType.Element) continue; switch (xNodeLoop.Name) { case "DataPoints": _Datapoints = new DataPoints(r, this, xNodeLoop); break; case "PlotType": _PlotType = Engine.PlotType.GetStyle(xNodeLoop.InnerText, OwnerReport.rl); break; case "YAxis": case "fyi:YAxis": _YAxis = xNodeLoop.InnerText; break; case "NoMarker": case "fyi:NoMarker": _NoMarker = Boolean.Parse(xNodeLoop.InnerText); break; case "LineSize": case "fyi:LineSize": _LineSize = xNodeLoop.InnerText; break; case "fyi:Color": case "Color": case "Colour": _Colour = xNodeLoop.InnerText; break; default: // don't know this element - log it OwnerReport.rl.LogError(4, "Unknown ChartSeries element '" + xNodeLoop.Name + "' ignored."); break; } } if (_Datapoints == null) OwnerReport.rl.LogError(8, "ChartSeries requires the DataPoints element."); }