Example #1
0
        PlotTypeEnum _PlotType;         // Indicates whether the series should be plotted
        // as a line in a Column chart. If set to auto,
        // should be plotted per the primary chart type.
        // Auto (Default) | Line

        internal ChartSeries(ReportDefn r, ReportLink p, XmlNode xNode) : base(r, p)
        {
            _Datapoints = null;
            _PlotType   = PlotTypeEnum.Auto;

            // 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 = fyiReporting.RDL.PlotType.GetStyle(xNodeLoop.InnerText, OwnerReport.rl);
                    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.");
            }
        }
Example #2
0
		PlotTypeEnum _PlotType;		// Indicates whether the series should be plotted
								// as a line in a Column chart. If set to auto,
								// should be plotted per the primary chart type.
								// Auto (Default) | Line		
	
		internal ChartSeries(ReportDefn r, ReportLink p, XmlNode xNode) : base(r, p)
		{
			_Datapoints=null;
			_PlotType=PlotTypeEnum.Auto;

			// 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 = fyiReporting.RDL.PlotType.GetStyle(xNodeLoop.InnerText, OwnerReport.rl);
						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.");
		}
Example #3
0
        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 = fyiReporting.RDL.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.");
            }
        }
Example #4
0
        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 = fyiReporting.RDL.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.");
        }