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
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
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.
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
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.
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
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
updates for this issue?
tnx
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