DateTimeContinuousAxis ignores either min/max or majorStep/units

3 posts, 0 answers
  1. Doc
    Doc avatar
    2 posts
    Member since:
    Aug 2017

    Posted 08 Aug Link to this post

    Telerik XamarinForms Chart (v 2017.2.503.234)

    I've tried setting a Minimum, Maximum, MajorStep, and MajorStepUnit in varying combinations, directly on the backing page code, in varying orders, and even directly bound to the context in xaml. And each time I end up with either an unexpected time range (data being charted into a future date, ie. the data charted doesn't align with the ticks as expected) or I end up with a massive number of ticks that don't match the values I set for major step and major step units.

    I can't seem to find any additional documentation or similar issues reported, and after many hours of testing and changing the code, I feel as if something internal to the library is opting in or out of certain configuration values, based on which other values are set. 

    I've additionally had a very hard time diagnosing the issue and/or coming up with a solution as the API/Properties are very inconsistent across the other Telerik charting packages (Android, WPF, etc -- ie. MaximumTicks property)

  2. Doc
    Doc avatar
    2 posts
    Member since:
    Aug 2017

    Posted 08 Aug Link to this post

    Adding screenshot for incorrect majorstep and unit. This should be showing 6 hour ticks.
  3. Ves
    Admin
    Ves avatar
    2914 posts

    Posted 11 Aug Link to this post

    Hi Doc,

    Please, find attached a small example, showing how to configure DateTimeContinuousAxis. It sets Minimum, Maximum and MajorStep, but virtually every combination of them (present/absent) yields correct visualization. I have also attached a screenshot. You can review the attached page and try to find the differences with your scenario. If it does not quite fit, you can modify it, so that it matches your setup and the issue is reproduced. Then send it back to us, so that we can review it. Thank you.

    Please note, that binding axis values in xaml will not work at the moment due to some issues with BindingContext propagation.

    Best regards,
    Ves
    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