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

Scaling displayed values

4 Answers 37 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
AS
Top achievements
Rank 1
AS asked on 12 Aug 2010, 08:37 PM
Hi, how to scale data-bound values along a given axis?  For example, the underlying data values need to be multiplied by 2 before being displayed on the Y-axis.  How to accomplish this?

Thanks

4 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 17 Aug 2010, 01:25 PM
Hi AS,

In case you are talking about RadGrid and not RadChart, you can use a calculated column for that:

http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/calculatedcolumns/defaultcs.aspx

http://www.telerik.com/help/aspnet-ajax/grdcolumntypes.html#GridCalculatedColum

Sincerely yours,
Dimo
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
AS
Top achievements
Rank 1
answered on 17 Aug 2010, 03:04 PM

Hello Dimo,

Thank you for your response.  However, it is the RadChart where I want the scaling.  I should have mentioned that in the initial post.  Is there a way to scale the values in a RadChart as well?

 

Best Regards.

 

0
Ves
Telerik team
answered on 19 Aug 2010, 08:37 AM
Hi AS,

You can wire the ItemDataBound event in RadChart. It is triggered for every ChartSeriesItem, so you can update its YValue.

Best regards,
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
AS
Top achievements
Rank 1
answered on 19 Aug 2010, 03:49 PM

Thanks for the hint, Ves.  This should work, I will try it out.

 

AS

Tags
Chart (Obsolete)
Asked by
AS
Top achievements
Rank 1
Answers by
Dimo
Telerik team
AS
Top achievements
Rank 1
Ves
Telerik team
Share this question
or