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

Android simulator: Annotation fails on DateTimeContinuousAxis

1 Answer 64 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Giorgio
Top achievements
Rank 1
Giorgio asked on 01 Jul 2017, 08:11 AM

Hi, I' get a Chart with DateTimeContinuousAxis that show well on iOS simulator but fails on Android emulator as you can see on the atteched pictures.

The error message says:

"The value 1.4946336E12 provided for the annotation is incompatible with the selected axis"

 

<RadCartesianChart row="1" tkExampleTitle tkToggleNavButton>
<LinearAxis tkCartesianVerticalAxis></LinearAxis>
<DateTimeContinuousAxis tkCartesianHorizontalAxis id="hAxis"
minimum="01/05/2017" maximum="31/05/2017" majorStep="Day"
dateFormat="dd" labelFitMode="Rotate"
labelRotationAngle="1.2"></DateTimeContinuousAxis>
<LineSeries tkCartesianSeries [items]="categoricalSource"
categoryProperty="timestamp"
valueProperty="amount"></LineSeries>
<ChartGridLineAnnotation tkCartesianAnnotations axisId="hAxis" hidden="false"
zPosition="BelowSeries" strokeWidth="4" value="1494633600000"
strokeColor="#EB916580">
</ChartGridLineAnnotation>
</RadCartesianChart>

1 Answer, 1 is accepted

Sort by
0
Nick Iliev
Telerik team
answered on 03 Jul 2017, 12:48 PM
Hello Giorgio,

We noticed that you have logged this issue in your last post in this thread and our developers have logged this as a bug and already planned the fix in their TODO list as discussed here.

quote from the forum post reply:
    I have investigated the case and have found the reason for the issue you are facing: there is a small bug in the way GridLineAnnotation interacts with the DateTimeContinuousAxis on Android. We are going to log this issue in our TODO system and fix it immediately for you. You will be able to access the fix using the @next tag of the plugin on npmjs.org. I will make sure to notify you as soon as the fix is ready (will be a matter of a day or two).

We will update the information as soon as we have a stable solution to this issue and we will ping you so you could test your project with the next version of the upcoming release.

Regards,
Nikolay Iliev
Progress Telerik
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
Tags
Chart
Asked by
Giorgio
Top achievements
Rank 1
Answers by
Nick Iliev
Telerik team
Share this question
or