internal void AddParetoLine()
        {
            var ix         = _chart.Series.Count * 2;
            var serElement = ExcelChartExSerie.CreateSeriesElement((ExcelChartEx)_chart, eChartType.Pareto, ix + 1, TopNode, true);

            serElement.SetAttribute("ownerIdx", (ix).ToString());
            serElement.InnerXml = "<cx:axisId val=\"2\"/>";
            AddParetoLineFromSerie(serElement);
        }
 internal ExcelChartExDataLabelCollection(ExcelChartExSerie serie, XmlNamespaceManager ns, XmlNode node, string[] schemaNodeOrder) :
     base(serie, ns, node)
 {
     _chart = serie._chart;
     AddSchemaNodeOrder(schemaNodeOrder, new string[] { "numFmt", "spPr", "txPr", "visibility", "separator" });
     foreach (XmlNode pointNode in TopNode.SelectNodes(ExcelChartExDataLabel._dataLabelPath, ns))
     {
         var item = new ExcelChartExDataLabelItem(serie, ns, pointNode);
         _dic.Add(item.Index, item);
     }
 }
예제 #3
0
 internal ExcelChartExDataCollection(ExcelChartExSerie serie, XmlNamespaceManager nsm, XmlNode topNode) : base(nsm, topNode)
 {
     _serie = serie;
     foreach (XmlElement c in topNode.ChildNodes)
     {
         if (c.LocalName == "numDim")
         {
             _list.Add(new ExcelChartExNumericData(serie._chart.WorkSheet.Name, NameSpaceManager, c));
         }
         else if (c.LocalName == "strDim")
         {
             _list.Add(new ExcelChartExStringData(serie._chart.WorkSheet.Name, NameSpaceManager, c));
         }
     }
 }
예제 #4
0
 internal ExcelChartExDataPointCollection(ExcelChartExSerie serie, XmlNamespaceManager ns, XmlNode topNode, string[] schemaNodeOrder) : base(ns, topNode)
 {
     SchemaNodeOrder = schemaNodeOrder;
     foreach (XmlNode pointNode in TopNode.SelectNodes(ExcelChartExDataPoint.dataPtPath, ns))
     {
         var item = new ExcelChartExDataPoint(serie, ns, pointNode, SchemaNodeOrder);
         _dic.Add(item.Index, item);
     }
     foreach (XmlElement stNode in TopNode.SelectNodes(ExcelChartExDataPoint.SubTotalPath, ns))
     {
         var ix = int.Parse(stNode.GetAttribute("val"));
         if (_dic.ContainsKey(ix))
         {
             _dic[ix].SubTotal = true;
         }
         else
         {
             var item = new ExcelChartExDataPoint(serie, ns, TopNode, ix, SchemaNodeOrder);
             _dic.Add(item.Index, item);
         }
     }
     _serie = serie;
 }
예제 #5
0
 internal ExcelChartExDataLabelItem(ExcelChartExSerie serie, XmlNamespaceManager nsm, XmlNode node, int index) : base(serie, nsm, node)
 {
     Index = index;
 }
예제 #6
0
 internal ExcelChartExDataPoint(ExcelChartExSerie serie, XmlNamespaceManager ns, XmlNode topNode, int index, string[] schemaNodeOrder) : base(ns, topNode)
 {
     _serie = serie;
     AddSchemaNodeOrder(schemaNodeOrder, new string[] { "spPr" });
     Index = index;
 }
예제 #7
0
 internal ExcelChartExDataLabel(ExcelChartExSerie serie, XmlNamespaceManager nsm, XmlNode node) : base(serie._chart, nsm, node, "", "cx")
 {
     _serie          = serie;
     SchemaNodeOrder = new string[] { "numFmt", "visibility", "spPr", "txPr", "visibility", "separator" };
 }
예제 #8
0
 internal ExcelChartExSerieDataLabel(ExcelChartExSerie serie, XmlNamespaceManager ns, XmlNode node, string[] schemaNodeOrder)
     : base(serie, ns, node)
 {
     SchemaNodeOrder = schemaNodeOrder;
     Position        = eLabelPosition.Center;
 }