This example demonstrates how you can exclude weekends and holidays from the X-axis range. This feature is useful for financial charting.
You can specify a custom week, or import holiday lists in Microsoft Outlook or in our native XtraScheduler format.
The first chart excludes holidays and non-working days from the axis scale and shows how to set custom workdays and holidays. In this example, Sunday is a work day and Saturday is a day off, March 6th (Saturday) is an additional work day and March 8th (Monday) is an additional holiday. For this, use the DateTimeScaleOptions.WorkdaysOnly and DateTimeScaleOptions.WorkdaysOptions properties.
The second chart shows how to exclude axis ranges without data points. In this example, March 8th has no data points to display and is not displayed on the X-axis. To do this, use the DateTimeScaleOptions.SkipRangesWithoutPoints property.