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

Axes-X to LocalTime

5 Answers 70 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Ilyasse Setti
Top achievements
Rank 1
Ilyasse Setti asked on 26 May 2010, 03:08 PM
Hi ,
We have an application where we received series values (time series) in UTC.
We would like that the X Axe fo the RadChart  displays the date into LocalTime.

How can we perform this ?
Thank you.

5 Answers, 1 is accepted

Sort by
0
Velin
Telerik team
answered on 28 May 2010, 02:05 PM
Hello Ilyasse Setti,

RadChart supports DateTime values on the X axis as described in this help article.

Hope this will help.

Kind regards,
Velin
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
Ilyasse Setti
Top achievements
Rank 1
answered on 31 May 2010, 03:31 PM
IHi ,

I Think you didn't undestand my question very well. I know as well that the X- Axe can manage date Time values.
What I want to know, it's if it manages LOCALTIME VALUES....

I Mean if i want that the data in my chart are converted to LocalTime from  a serie data in UTC... how can I process this ?

Example: I am receiving from a DataBase a couple of data X, Y (DateTime, Double).. The datetime field is in UTC.
Is it possible to say to the chart...
" Attention !!, the X-Axe is in LocalTime not in UTC."
I see that there is a property saying that the Axe-X is DateTime ; (DefaultView.ChartArea.AxisX.IsDateTime = true), this very good.
But I wand to say that this DateTime is in LocalTime... In that way the data (YValue) are directly adapted to its XValue in LocalTime...


0
Velin
Telerik team
answered on 03 Jun 2010, 12:10 PM
Hello Ilyasse Setti,

Unfortunately, this is not supported internally by the control. You need to manually convert your data to UTC time before the chart is data bound.

Greetings,
Velin
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
Ilyasse Setti
Top achievements
Rank 1
answered on 04 Jun 2010, 01:34 PM
Thank you,

But this is absolutly not a good a solution for us... 
Our chart can manage untill thousand hundred of data, sent from a WCF, I can imagine to convert those datas before each time I want to display them in my chart...

Can you imagine this ???

Really you should foreseen a properties for this in your next release, because the Local Settings in a world wide web application is very important.
And those control are in silverlight which is a WEB plug-in.


0
Hristo
Telerik team
answered on 10 Jun 2010, 08:19 AM
Hi Ilyasse Setti,

Thank you for your feedback! We'll definitely take into account this case on our next planning meeting. Due to the high number of planned development we cannot commit the availability of this feature to any specific date or release.

All the best,
Hristo
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.
Tags
Chart
Asked by
Ilyasse Setti
Top achievements
Rank 1
Answers by
Velin
Telerik team
Ilyasse Setti
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or