Hello,
I'm implementing a RadCartesianChart with dynamic ChartDataSource and data sampling.
Everything's fine but I'd like to sample via a sum function and not via the default average one.
So I created a new SumBarSeries which inherits from BarSeries as shown below :
public class SumBarSeries : BarSeries
{
protected override ChartAggregateFunction GetValueAggregateFunction()
{
return new ChartSumFunction();
}
}
There's a min, max, average, keepextremes, first and last function but no sum function.
Is there a simple way to add such a function?
Furthermore is it possible to change dynamically the sampling function just like the old RadCharts without changing the BarSeries class (ie. SumBarSeries)?
Thanks,
Michel LACOMBE
I'm implementing a RadCartesianChart with dynamic ChartDataSource and data sampling.
Everything's fine but I'd like to sample via a sum function and not via the default average one.
So I created a new SumBarSeries which inherits from BarSeries as shown below :
public class SumBarSeries : BarSeries
{
protected override ChartAggregateFunction GetValueAggregateFunction()
{
return new ChartSumFunction();
}
}
There's a min, max, average, keepextremes, first and last function but no sum function.
Is there a simple way to add such a function?
Furthermore is it possible to change dynamically the sampling function just like the old RadCharts without changing the BarSeries class (ie. SumBarSeries)?
Thanks,
Michel LACOMBE