Date Format in x axis Android and UWP

10 posts, 0 answers
  1. Pari
    Pari avatar
    7 posts
    Member since:
    Dec 2016

    Posted 16 Jun Link to this post

    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

     

  2. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    498 posts

    Posted 21 Jun Link to this post

    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
  3. Pari
    Pari avatar
    7 posts
    Member since:
    Dec 2016

    Posted 21 Jun in reply to Stefan Nenchev Link to this post

    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.

     

  4. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    498 posts

    Posted 23 Jun Link to this post

    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
  5. Pari
    Pari avatar
    7 posts
    Member since:
    Dec 2016

    Posted 24 Jun in reply to Stefan Nenchev Link to this post

    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.

  6. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    498 posts

    Posted 29 Jun Link to this post

    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
  7. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    498 posts

    Posted 29 Jun Link to this post

    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
  8. Pari
    Pari avatar
    7 posts
    Member since:
    Dec 2016

    Posted 29 Jun in reply to Stefan Nenchev Link to this post

    Stefan thank you very much for your collaboration and for your great support. We will be waiting for the updates... 
  9. Pari
    Pari avatar
    7 posts
    Member since:
    Dec 2016

    Posted 26 Aug in reply to Pari Link to this post

    Hi Stefan
    any updates for this issue?
    tnx
  10. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    498 posts

    Posted 29 Aug Link to this post

    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
Back to Top