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

Trackball for LineSeries with DateTimeContinuousAxis doesn't work on Android

4 Answers 52 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.
Sergey
Top achievements
Rank 1
Sergey asked on 16 Jul 2017, 05:01 AM

Hi,

I am trying to test Trackball functionality, but it fails with ClassCastException on Android if I am using DateTimeContinuousAxis. It cannot cast Long to Calendar in DateTimeContinuousAxis.findClosestPoint. See my chart below:

 

<RadCartesianChart id="cartesianChart" pointSelectionMode="single" (pointSelected)="pointSelected($event)">
<LinearAxis tkCartesianVerticalAxis horizontalLocation="left" allowZoom="true" allowPan="true"></LinearAxis>
<DateTimeContinuousAxis tkCartesianHorizontalAxis
minimum="01/02/2015"
maximum="01/10/2015"
majorStep="Month"
dateFormat="MMM-dd"
labelFitMode="Rotate"
labelRotationAngle="1.2"
allowZoom="true" allowPan="true">
</DateTimeContinuousAxis>

<LineSeries tkCartesianSeries
id="temperatureSeries"
seriesName="temperature"
[items]="tempReports"
categoryProperty="timeStamp"
valueProperty="Amount"
selectionMode="DataPoint">
</LineSeries>
<LineSeries tkCartesianSeries
seriesName="humidity"
[items]="humidityReports"
categoryProperty="timeStamp"
valueProperty="Amount">
</LineSeries>

<Palette tkCartesianPalette seriesName="temperature">
<PaletteEntry tkCartesianPaletteEntry strokeWidth="10" strokeColor="Green"></PaletteEntry>
</Palette>

<Palette tkCartesianPalette seriesName="humidity">
<PaletteEntry tkCartesianPaletteEntry strokeWidth="10" strokeColor="Blue"></PaletteEntry>
</Palette>

<Trackball tkCartesianTrackball showIntersectionPoints="true"></Trackball>
</RadCartesianChart>

 

I am wondering if this is a general problem or I am doing something wrong. It would be nice to publish more examples and more complex examples online.

 

Thanks

 

4 Answers, 1 is accepted

Sort by
0
Sergey
Top achievements
Rank 1
answered on 16 Jul 2017, 12:27 PM

I created another chart, this time with CategoricalAxis. Now Trackball shows up correctly. So it seems that the problem happens with DateTimeContinuesAxis only. I am wondering if there is a way to customize Trackball, change it's size, color and display point's details in more human readable manner, not just 9 40.0?

 

0
Nikolay Tsonev
Telerik team
answered on 17 Jul 2017, 08:16 AM
Hi Sergey,

Indeed there is an issue while using the TrackBall in Chart with DateTimeContinuesAxis. I was able to reproduce this problem only on Android and logged a new issue for this bug. Regarding that, you could keep track on the issue for further info and in the meantime, you could use CategoricalAxis as you suggested in your comment.

About the second question at this time, the TrackBall styling is not supported and for your convininece, I logged new feature request here. You could review it and you could also add your additional info in it.

Regards,
nikolay.tsonev
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.
0
Sergey
Top achievements
Rank 1
answered on 17 Jul 2017, 08:31 AM

Nikolay,

 

Thank you very much for your time and efforts to reproduce and report issues that I have mentioned above.One last question, can I use Dates with CategoralAxis?

 

Thanks

0
Nikolay Tsonev
Telerik team
answered on 17 Jul 2017, 11:00 AM
Hi Sergey,

Indeed, you could use Dates while using CategoricalAxes in the Chart. 
However, bear in mind that this type of axes do not support date formatting 

Regards,
nikolay.tsonev
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
Sergey
Top achievements
Rank 1
Answers by
Sergey
Top achievements
Rank 1
Nikolay Tsonev
Telerik team
Share this question
or