Example #1
0
        /// <summary>
        /// Default constructor
        /// </summary>
        /// <param name="chartSeries">Parent collection</param>
        /// <param name="ns">Namespacemanager</param>
        /// <param name="node">Topnode</param>
        /// <param name="isPivot">Is pivotchart</param>
        internal ExcelChartSerie(ExcelChartSeries chartSeries, XmlNamespaceManager ns, XmlNode node, bool isPivot)
            : base(ns, node)
        {
            _chartSeries    = chartSeries;
            _node           = node;
            _ns             = ns;
            SchemaNodeOrder = new string[] { "idx", "order", "tx", "marker", "trendline", "explosion", "dLbls", "cat", "val", "yVal", "xVal", "smooth" };

            if (chartSeries.Chart.ChartType == eChartType.XYScatter ||
                chartSeries.Chart.ChartType == eChartType.XYScatterLines ||
                chartSeries.Chart.ChartType == eChartType.XYScatterLinesNoMarkers ||
                chartSeries.Chart.ChartType == eChartType.XYScatterSmooth ||
                chartSeries.Chart.ChartType == eChartType.XYScatterSmoothNoMarkers)
            {
                _seriesTopPath  = "c:yVal";
                _xSeriesTopPath = "c:xVal";
            }
            else
            {
                _seriesTopPath  = "c:val";
                _xSeriesTopPath = "c:cat";
            }
            _seriesPath  = string.Format(_seriesPath, _seriesTopPath);
            _xSeriesPath = string.Format(_xSeriesPath, _xSeriesTopPath, isPivot ? "c:multiLvlStrRef" : "c:numRef");
        }
Example #2
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="chartSeries">Parent collection</param>
 /// <param name="ns">Namespacemanager</param>
 /// <param name="node">Topnode</param>
 /// <param name="isPivot">Is pivotchart</param>
 internal ExcelScatterChartSerie(ExcelChartSeries chartSeries, XmlNamespaceManager ns, XmlNode node, bool isPivot) :
     base(chartSeries, ns, node, isPivot)
 {
     if (chartSeries.Chart.ChartType == eChartType.XYScatterLines ||
         chartSeries.Chart.ChartType == eChartType.XYScatterSmooth)
     {
         Marker = eMarkerStyle.Square;
     }
 }
Example #3
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="chartSeries">Parent collection</param>
 /// <param name="ns">Namespacemanager</param>
 /// <param name="node">Topnode</param>
 /// <param name="isPivot">Is pivotchart</param>
 internal ExcelLineChartSerie(ExcelChartSeries chartSeries, XmlNamespaceManager ns, XmlNode node, bool isPivot) :
     base(chartSeries, ns, node, isPivot)
 {
 }