Hello
Is there a way to create a custom ChartAggregateFunction.
Scenario:
I need to chart the aggregate average based on grouped data from 2 columns in a gridview. ie (column1 - column2) / column2
Any help would be great.
Nick
Is there a way to create a custom ChartAggregateFunction.
Scenario:
I need to chart the aggregate average based on grouped data from 2 columns in a gridview. ie (column1 - column2) / column2
Any help would be great.
Nick
3 Answers, 1 is accepted
0
Hello Nick,
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:
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.
Sincerely,
Ves
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? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
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:
void
RadChart1_ItemDataBound(
object
sender, Telerik.Windows.Controls.Charting.ChartItemDataBoundEventArgs e)
{
MyCalcData dataItem = e.DataItem
as
MyCalcData;
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.
Sincerely,
Ves
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? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Nick Wood
Top achievements
Rank 1
answered on 29 Mar 2010, 07:09 AM
Took about 1 hours to update all binaries and re reference in all modules to latest internal build:
Silverlight_2010_1_0326
but when I try to show a module that contains a RadDocking control (I think this is what is unique about this module) I get:
Unhandled Error in Silverlight Application
Code: 2012
Category: ParserError
Message: Unknown attribute ContentTemplateSelector on element ContentPresenter.
File:
Line: 17
Position: 90
Is there an easier way to update to a new build?
Please help as this is costing me alot of time
Silverlight_2010_1_0326
but when I try to show a module that contains a RadDocking control (I think this is what is unique about this module) I get:
Unhandled Error in Silverlight Application
Code: 2012
Category: ParserError
Message: Unknown attribute ContentTemplateSelector on element ContentPresenter.
File:
Line: 17
Position: 90
Is there an easier way to update to a new build?
Please help as this is costing me alot of time
0
Hello Nick,
Miroslav Nedyalkov
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? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
There is a problem in the Docking assembly. We will fix it for the next internal build. We apologize for the inconvenience caused.
All the best,Miroslav Nedyalkov
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? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.