Skip to content

DevExpress-Examples/winforms-chart-exclude-weekends-and-holidays-from-the-axis-range

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chart for WinForms - How to Exclude Weekends and Holidays from the Axis Range

This example demonstrates how you can exclude weekends and holidays from the X-axis range. This feature is useful for financial charting.

Files to Review

Example Overview

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.

Documentation

About

This example demonstrates how you can exclude weekends and holidays from the X-axis range. This feature is useful for financial charting.

Topics

Resources

License

Stars

Watchers

Forks