internal C.ScatterChartSeries ToScatterChartSeries(bool IsStylish = false) { C.ScatterChartSeries scs = new C.ScatterChartSeries(); scs.Index = new C.Index() { Val = this.Index }; scs.Order = new C.Order() { Val = this.Order }; if (this.IsStringReference != null) { scs.SeriesText = new C.SeriesText(); if (this.IsStringReference.Value) { scs.SeriesText.StringReference = this.StringReference.ToStringReference(); } else { scs.SeriesText.NumericValue = new C.NumericValue(this.NumericValue); } } if (this.Options.ShapeProperties.HasShapeProperties) { scs.ChartShapeProperties = this.Options.ShapeProperties.ToChartShapeProperties(IsStylish); } if (this.Options.Marker.HasMarker) { scs.Marker = this.Options.Marker.ToMarker(IsStylish); } if (this.DataPointOptionsList.Count > 0) { List <int> indexlist = this.DataPointOptionsList.Keys.ToList <int>(); indexlist.Sort(); int index; for (int i = 0; i < indexlist.Count; ++i) { index = indexlist[i]; scs.Append(this.DataPointOptionsList[index].ToDataPoint(index, IsStylish)); } } if (this.GroupDataLabelOptions != null || this.DataLabelOptionsList.Count > 0) { if (this.GroupDataLabelOptions == null) { SLGroupDataLabelOptions gdloptions = new SLGroupDataLabelOptions(new List <System.Drawing.Color>()); scs.Append(gdloptions.ToDataLabels(this.DataLabelOptionsList, true)); } else { scs.Append(this.GroupDataLabelOptions.ToDataLabels(this.DataLabelOptionsList, false)); } } scs.Append(this.AxisData.ToXValues()); scs.Append(this.NumberData.ToYValues()); scs.Append(new C.Smooth() { Val = this.Options.Smooth }); return(scs); }
internal C.ScatterChartSeries ToScatterChartSeries(bool IsStylish = false) { C.ScatterChartSeries scs = new C.ScatterChartSeries(); scs.Index = new C.Index() { Val = this.Index }; scs.Order = new C.Order() { Val = this.Order }; if (this.IsStringReference != null) { scs.SeriesText = new C.SeriesText(); if (this.IsStringReference.Value) { scs.SeriesText.StringReference = this.StringReference.ToStringReference(); } else { scs.SeriesText.NumericValue = new C.NumericValue(this.NumericValue); } } if (this.Options.ShapeProperties.HasShapeProperties) { scs.ChartShapeProperties = this.Options.ShapeProperties.ToChartShapeProperties(IsStylish); } if (this.Options.Marker.HasMarker) { scs.Marker = this.Options.Marker.ToMarker(IsStylish); } if (this.DataPointOptionsList.Count > 0) { List<int> indexlist = this.DataPointOptionsList.Keys.ToList<int>(); indexlist.Sort(); int index; for (int i = 0; i < indexlist.Count; ++i) { index = indexlist[i]; scs.Append(this.DataPointOptionsList[index].ToDataPoint(index, IsStylish)); } } if (this.GroupDataLabelOptions != null || this.DataLabelOptionsList.Count > 0) { if (this.GroupDataLabelOptions == null) { SLGroupDataLabelOptions gdloptions = new SLGroupDataLabelOptions(new List<System.Drawing.Color>()); scs.Append(gdloptions.ToDataLabels(this.DataLabelOptionsList, true)); } else { scs.Append(this.GroupDataLabelOptions.ToDataLabels(this.DataLabelOptionsList, false)); } } scs.Append(this.AxisData.ToXValues()); scs.Append(this.NumberData.ToYValues()); scs.Append(new C.Smooth() { Val = this.Options.Smooth }); return scs; }
internal C.ScatterChartSeries ToScatterChartSeries(bool IsStylish = false) { var scs = new C.ScatterChartSeries(); scs.Index = new C.Index { Val = Index }; scs.Order = new C.Order { Val = Order }; if (IsStringReference != null) { scs.SeriesText = new C.SeriesText(); if (IsStringReference.Value) { scs.SeriesText.StringReference = StringReference.ToStringReference(); } else { scs.SeriesText.NumericValue = new C.NumericValue(NumericValue); } } if (Options.ShapeProperties.HasShapeProperties) { scs.ChartShapeProperties = Options.ShapeProperties.ToChartShapeProperties(IsStylish); } if (Options.Marker.HasMarker) { scs.Marker = Options.Marker.ToMarker(IsStylish); } if (DataPointOptionsList.Count > 0) { var indexlist = DataPointOptionsList.Keys.ToList(); indexlist.Sort(); int index; for (var i = 0; i < indexlist.Count; ++i) { index = indexlist[i]; scs.Append(DataPointOptionsList[index].ToDataPoint(index, IsStylish)); } } if ((GroupDataLabelOptions != null) || (DataLabelOptionsList.Count > 0)) { if (GroupDataLabelOptions == null) { var gdloptions = new SLGroupDataLabelOptions(new List <Color>()); scs.Append(gdloptions.ToDataLabels(DataLabelOptionsList, true)); } else { scs.Append(GroupDataLabelOptions.ToDataLabels(DataLabelOptionsList, false)); } } scs.Append(AxisData.ToXValues()); scs.Append(NumberData.ToYValues()); scs.Append(new C.Smooth { Val = Options.Smooth }); return(scs); }