This is a migrated thread and some comments may be shown as answers.

Cannot use KeepExtremesFunction for LineSeries

1 Answer 85 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 15 Nov 2019, 02:41 PM

Hello,

I have RadCartesianChart with DateTimeContinuousAxis and LinearAxis (DateTime vs double representation). And I want to to use KeepExtremesFunction, but exception occurs:

System.InvalidOperationException: 'No generic method 'KeepExtremes' on type 'Telerik.Windows.Controls.ChartView.ChartSamplingFunctions' is compatible with the supplied type arguments and arguments. No type arguments should be provided if the method is non-generic. '

Bay the way ChartMaxFunction, ChartMinFunction or MemberFirstFunction works fine.

 

public class LineSeriesEx : LineSeries
{
    protected override ChartAggregateFunction GetCategoryAggregateFunction()
    {
      return new KeepExtremesFunction();
    }
}

 

1 Answer, 1 is accepted

Sort by
0
Thomas
Top achievements
Rank 1
answered on 15 Nov 2019, 03:01 PM
Sorry, I used GetCategoryAggregateFunction insted of GetValueAggregateFunction. Everything is working. Please remove a post.
Tags
ChartView
Asked by
Thomas
Top achievements
Rank 1
Answers by
Thomas
Top achievements
Rank 1
Share this question
or