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

DateTimeContinuousAxis ignores either min/max or majorStep/units

2 Answers 112 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Doc
Top achievements
Rank 1
Doc asked on 08 Aug 2017, 07:13 PM

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 Answers, 1 is accepted

Sort by
0
Doc
Top achievements
Rank 1
answered on 08 Aug 2017, 07:46 PM
Adding screenshot for incorrect majorstep and unit. This should be showing 6 hour ticks.
0
Ves
Telerik team
answered on 11 Aug 2017, 08:08 AM
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
Tags
Chart
Asked by
Doc
Top achievements
Rank 1
Answers by
Doc
Top achievements
Rank 1
Ves
Telerik team
Share this question
or