Determining Dates Actually Displayed on NRangeTimelineScaleConfigurator?


https://www.nevron.com/Forum/Topic14349.aspx
Print Topic | Close Window

By - 2 Years Ago
I have a chart with an X axis configured with the NRangeTimelineScaleConfigurator so that the X axis displays dates. The X axis has weekend rules applied, such that the dates on the X axis are non-consecutive, since Saturday and Sunday dates do not appear. All of this works well.

Can I, using this configuration, and given a date ... 

1. Determine whether or not the given date is actually displayed on the X axis? If so, how?
2. Determine the next date after the given date actually displayed on the X axis? If so, how?
2. Determine the previous date after the given date actually displayed on the X axis? If so, how?
By Nevron Support - 2 Years Ago
Hi,

Currently, the axis does not expose this information, however, we just modified the code of the control so the next release will give more access to the generated timeline. With the new version you'll be able to check if a date time is working or not using:

NTimeline timeline = chart.Axis(StandardAxis.PrimaryX).Scale.Timeline;
timeline.IsEmptyAt(someDateTime);

We expect to release a new version of .NET Vision next week. We hope this helps - let us know if you have any questions.