Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
180
SplineSeries -> Markers missing
posted

Hello!

When I change my series from LineSeries (or any other type) to SplineSeries or SplineAreaSeries, some of the markers are missing.

LineSeries:

LineSeries

SplineSeries:

SplineSeries

This is the part of my code where I create the SplineSeries / change to SplineSeries:

public HorizontalAnchoredCategorySeries ActualSeries { get; set; }

public void Actualize(SeriesType seriesType)
{
TrendItemXAxis trendXAxis = this.ParentTrendItem.XAxis;
TrendItemYAxis trendYAxis = this.ParentTrendItem.YAxis;

//If series type has changed, make new series
if (seriesType != this._seriesType)
{
switch (seriesType)
{
case SeriesType.Line:
this.ActualSeries = new LineSeries();
break;
case SeriesType.Bargraph:
this.ActualSeries = new ColumnSeries();
break;
case SeriesType.Area1:
this.ActualSeries = new AreaSeries();
break;
case SeriesType.Points:
this.ActualSeries = new PointSeries();
break;
case SeriesType.Spline:
this.ActualSeries = new SplineSeries();
break;
case SeriesType.Splinearea:
this.ActualSeries = new SplineAreaSeries();
break;
case SeriesType.RectangularLine:
this.ActualSeries = new StepLineSeries();
break;
case SeriesType.RectangularArea:
this.ActualSeries = new StepAreaSeries();
break;
}
}

this.ActualSeries.Title = this.Title;
this.ActualSeries.XAxis = trendXAxis.Axis;
this.ActualSeries.XAxis.BorderBrush = this.Brush;
this.ActualSeries.XAxis.ItemsSource = this.DataCollectionManager.DataPointsCollection;

this.ActualSeries.YAxis = trendYAxis.Axis;
this.ActualSeries.Brush = this.Brush;
this.ActualSeries.MarkerBrush = this.Brush;
this.ActualSeries.MarkerType = this.MarkerType;
this.ActualSeries.Visibility = this.Visibility;
this.ActualSeries.ToolTip = this.ToolTip;
this.ActualSeries.Resolution = this.Resolution;
this.ActualSeries.ValueMemberPath = this.ValueMemberPath;

this.ActualSeries.ItemsSource = this.DataCollectionManager.DataPointsCollection;

this.ActualSeries.Thickness = 2.0;
this.SeriesType = seriesType;
}

So all I'm doing is creating a new series and setting the marker type and the other properties. If I change my series to "ColumnSeries" or "AreaSeries" everything works fine.

I am using Infragistics v17.1. I had the same issue with v16.1. 

Is there a way to solve this problem? For me, the code looks just fine. Do I overlook something?

Please let me know if you need more information.

THX