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

Date Format in x axis Android and UWP

9 Answers 74 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Pari
Top achievements
Rank 1
Pari asked on 16 Jun 2017, 03:36 PM

Hi

I am trying to format the labels on x axis but I am facing a problem.

 

On UWP there labels are displayed OK, but on Android are not displayed well. The labels show a list datetime from a database.

 

I attached two screenshots.

 

<telerikChart:RadCartesianChart.HorizontalAxis>
                        <telerikChart:DateTimeContinuousAxis x:Name="axisDateTimeContinuous" LabelFitMode="Rotate" ShowLabels="True"  LabelFormat="d/M/yy HH:mm:ss"  LabelFontSize="15" LabelTextColor="Coral"/>
                    </telerikChart:RadCartesianChart.HorizontalAxis>

 

Can you help plz?

tnx

 

9 Answers, 1 is accepted

Sort by
0
Stefan Nenchev
Telerik team
answered on 21 Jun 2017, 07:37 AM
Hi Pari,

It will be hard to suggest what exactly is happening based on only these pictures that you have provided from your side. Would it be possible to share more information on your scenario and what exactly is the issue with the labels as the formatting seems identical at first sight? I have attached a sample application that achieves a look similar to yours. Please review it and consider modifying it to better explain the undesired behavior.

Have a great rest of the week.

Regards,
Stefan Nenchev
Progress Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Pari
Top achievements
Rank 1
answered on 21 Jun 2017, 08:26 AM

Hi Stefan,

tnx for your reply. Just to be more specific.

I attached another two screenshots from the charts. I set the MajorStepUnit = Minutes,  but I think there is a problem with the Charts in Android.

As you can see from the attachments the labels in the Android App are very close to each other. In UWP everything looks OK.

Please advise.

tnx in advance.

 

0
Stefan Nenchev
Telerik team
answered on 23 Jun 2017, 01:33 PM
Hi Pari,

It would be expected that the labels are drawn on top of each other when you have explicitly set the properties of the axis so that they cannot fit. With this in mind, I am reproducing the behavior in both platforms when setting the MajorStepUnit as an hour - please refer to the attached picture. It is up to the users to consider these effects when they are manually controlling the properties of the axis so I suggest you alter the setup at your end.

Regards,
Stefan Nenchev
Progress Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Pari
Top achievements
Rank 1
answered on 24 Jun 2017, 08:15 AM

Stefan thank you for your answer. I remove the property MajorStepUnit and I leave to Telerik Chart to do the adjustment automatically, but I have the same results.  

In my solution I am facing this problem only in Android and not in UWP. I am sorry for that but I cannot find a solution. Please advise.

tnx in advance.

0
Stefan Nenchev
Telerik team
answered on 29 Jun 2017, 07:04 AM
Hello Pari,

Thank you for the clarification. Indeed, I was able to reproduce the issue. As I came across some additional undesired effects, I will write back once we have investigated the behavior further and have more information on the matter.

Regards,
Stefan Nenchev
Progress Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Stefan Nenchev
Telerik team
answered on 29 Jun 2017, 08:24 AM
Hello Pari,

I can confirm that the behavior is a bug in the Chart implementation so I have logged it in our system with a high priority. You can track the progress of the issue on the following link from our Ideas & Feedback portal - Chart: [Android] Series are shrunk and a single label is rendered when using DateTimeContiniousAxis. I suggest you follow the item in order to subscribe for automatic notifications regarding more major updates. I have also added some points to your account for reporting the issue.

Regards,
Stefan Nenchev
Progress Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Pari
Top achievements
Rank 1
answered on 29 Jun 2017, 11:06 AM
Stefan thank you very much for your collaboration and for your great support. We will be waiting for the updates... 
0
Pari
Top achievements
Rank 1
answered on 26 Aug 2017, 09:32 AM

updates for this issue?
tnx
0
Stefan Nenchev
Telerik team
answered on 29 Aug 2017, 11:00 AM
Hi Pari,

Unfortunately, at the time of logging the issue, we already had prioritized other bugs and features for the release and have been working on implementing them so this bug has not been investigated yet. We will consider fixing it after we release the R3 2017 version of the controls(planned for the middle of September). However, I cannot provide an exact time frame so the best approach would be to follow the item in order to receive automatic notifications once any updates are available.

Regards,
Stefan Nenchev
Progress Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Pari
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
Pari
Top achievements
Rank 1
Share this question
or