private SeriesModel createSeries(string seriesMemberPath, string seriesName, string type) { HorizontalAnchoredCategorySeriesModel series; switch (type) { case "Point": series = new PointSeriesModel(); break; case "Line": series = new LineSeriesModel(); break; case "Spline": series = new SplineSeriesModel(); break; case "Area": series = new AreaSeriesModel(); break; case "Spline Area": series = new SplineAreaSeriesModel(); break; case "Step Line": series = new StepLineSeriesModel(); break; case "Step Area": series = new StepAreaSeriesModel(); break; case "Waterfall": series = new WaterfallSeriesModel(); break; default: series = new ColumnSeriesModel(); break; } series.XAxis = "xAxis"; series.YAxis = "yAxis"; series.Name = seriesName; series.Title = seriesName; series.ValueMemberPath = seriesMemberPath; series.MarkerType = type == "Point" ? MarkerType.Circle : MarkerType.None; series.Thickness = (type == "Column" && type == "waterfall") ? 1 : 3; series.IsTransitionInEnabled = true; series.IsHighlightingEnabled = true; series.ShowTooltip = true; return(series); }
/// <summary> /// Initializes a new instance of the <see cref="PointSeries" /> class. /// </summary> public PointSeries() { this.DefaultStyleKey = typeof(PointSeries); this.model = new PointSeriesModel(); this.defaultVisualSizeCache = new RadSize(this.PointSize.Width, this.PointSize.Height); }