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); } }
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)); } } }
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; }
internal ExcelChartExDataLabelItem(ExcelChartExSerie serie, XmlNamespaceManager nsm, XmlNode node, int index) : base(serie, nsm, node) { Index = index; }
internal ExcelChartExDataPoint(ExcelChartExSerie serie, XmlNamespaceManager ns, XmlNode topNode, int index, string[] schemaNodeOrder) : base(ns, topNode) { _serie = serie; AddSchemaNodeOrder(schemaNodeOrder, new string[] { "spPr" }); Index = index; }
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" }; }
internal ExcelChartExSerieDataLabel(ExcelChartExSerie serie, XmlNamespaceManager ns, XmlNode node, string[] schemaNodeOrder) : base(serie, ns, node) { SchemaNodeOrder = schemaNodeOrder; Position = eLabelPosition.Center; }