property Chart.ShowNonworkingUnits as Boolean
Retrieves or sets a value that indicates whether the non-working units are visible or hidden.

TypeDescription
Boolean A Boolean expression that specifies whether the non-working units (  hours or days ) are visible or hidden.
By default, the ShowNonworkingUnits property is True. In other words, by default the control displays the non-working units. Use the ShowNonworkingDates property to specify whether the the days are shown or hidden while the ShowNonworkingUnits property is False. Use the ShowNonworkingHours property to specify whether the the hours are shown or hidden while the ShowNonworkingUnits property is False. Use the UnitWidthNonworking property to specify a different width for non-working units in the base level. Use the NonworkingHours property to specify the non-working hours in your chart. Use the NonworkingDays property to specify the non-working days. Use the ShowNonworkingUnits property to display ONLY working units. For instance, you can display for each day the hours from 08:00 AM to 04:00PM, as the other hours ( non working hours ) are not displayed in the chart. Use the FormatLabel property to specify the format of the chart's level ( header ). The ItemNonworkingUnits property specifies different non-working zones for different items. The ShowNonworkingUnits property has no effect if the NonworkingHours and NonWorkingsDays properties are 0.

If  ShowNonworkingUnits property is True the:

If  ShowNonworkingUnits property is False the:

The following tables shows the control while  ShowNonworkingUnits / ShowNonworkingDates / ShowNonworkingHours properties have different values (x indicate true):

ShowNonworkingUnits ShowNonworkingDates ShowNonworkingHours  
x x x
x x
x x
x
x x

x

x

The following screen shot shows ONLY working hours from 08:00 AM to 12:00 PM ( ShowNonworkingUnits property is False ) :

The following screen shot shows with a different pattern the non-working hours ( ShowNonworkingUnits property is True ) :

1. The following screen shot shows the non-working units when the ShowNonworkingUnits property is True and UnitWidthNonworking property is 0 ( by default ):

The days 30, 31, 6, 7, ... are shown using the same width, when the ChartWidthNonworking property is 0

2. The following screen shot hides the non-working units when the ShowNonworkingUnits property is False and ShowNonworkingDates property is False:

The days 30, 31, 6, 7, 13, 14, ... are not shown if the ShowNonworkingUnits property is False.

3. The following screen shot shows the non-working units when the ShowNonworkingUnits property is True and  UnitWidthNonworking property is 12 ( positive value ):

The days 30, 31, 6, 7, 13, 14, ... are shown using the a different width, when the ChartWidthNonworking property is positive.

4. The following screen shot shows the non-working units when the ShowNonworkingUnits property is True and UnitWidthNonworking property is -12 ( negative value ):

The days 30, 31, 6, 7, 13, 14, ... are shown as a single non-working unit, when the ChartWidthNonworking property is negative.

5. If the chart displays days and use the NonworkingHours property to specify the non-working hours, but want to display the bars using the entire space of the day you need to specify the ShowNonworkingUnits property on False, the Unit property on exHour, Count property on 24 ( so actually it you simulate an entire day ) 

By default a bar that starts on #1/4/2002 10:00# and ends on #1/4/2002 14:00# looks as follows:

instead if the Unit property on exHour, Count property on 24 for the level that displays days and specify the ShowNonworkingUnits property on False we get this: