Trackball for LineSeries with DateTimeContinuousAxis doesn't work on Android

5 posts, 0 answers
  1. Sergey
    Sergey avatar
    8 posts
    Member since:
    Jul 2017

    Posted 16 Jul Link to this post

    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

     

  2. Sergey
    Sergey avatar
    8 posts
    Member since:
    Jul 2017

    Posted 16 Jul in reply to Sergey Link to this post

    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?

     

  3. nikolay.tsonev
    Admin
    nikolay.tsonev avatar
    287 posts

    Posted 17 Jul Link to this post

    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.
  4. Sergey
    Sergey avatar
    8 posts
    Member since:
    Jul 2017

    Posted 17 Jul in reply to nikolay.tsonev Link to this post

    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

  5. nikolay.tsonev
    Admin
    nikolay.tsonev avatar
    287 posts

    Posted 17 Jul Link to this post

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