I am afraid RadChart does not support this type of aggregate functions. Actually, this would be more like "Calculated series" but not an aggregate function. You can achieve it by wiring ItemDataBound
and modifying the YValue
of the DataPoint in the event handler:
sender, Telerik.Windows.Controls.Charting.ChartItemDataBoundEventArgs e)
MyCalcData dataItem = e.DataItem
e.DataPoint.YValue = (dataItem.MyProperty1 - dataItem.MyProperty2) / dataItem.MyProperty2;
Unfortunately, I have some bad news -- the above code is not applicable at the moment due to a bug in the control. Our developers assured me that the bug will be fixed in the next internal build, which will be available on Friday and you will be able to test it. Please, accept our apologies for the inconvenience. I have updated your Telerik points as your question led us to a bug in RadChart.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items.