property Chart.UnitWidthNonworking as Long
Specifies the width in pixels for the minimal unit.

 TypeDescription 
   Long A long expression that specifies the width for non-working units. The expression could be positive or negative as explained bellow.   
By default, the UnitWidthNonworking property is 0. Use the UnitWidthNonworking property to reduce the amount to display non-working units in the chart. The UnitWidth property specifies the width for the units in the base level. The UnitWidthNonworking property has no effect if it is 0 ( by default ). Use the ShowNonworkingUnits/ShowNonworkingDates property to hide the non-working units. Use the NonworkingHours property to specify the non-working hours in your chart. Use the NonworkingDays property to specify the non-working days. The FormatLevel property indicates the formula to display the HTML captions in the levels of the chart. The Width property defines the width for a specified time-unit. The UnitWidthNonworking property has no effect if the ShowNonworkingUnits and ShowNonworkingDates properties are False. Use the FormatLabel property to specify the format of the chart's level ( header ).

The UnitWidthNonworking property has effect only if:

The UnitWidthNonworking property specifies the width for non-working units being displayed in the base level as follow:

  1. if 0, it has no effect, so the UnitWidth property specifies the width for all units.
  2. if positive, it indicates the width for non-working units.
  3. if negative, it indicates that neighbor non-working units are shown as a single non-working unit with a different width ( absolute value ) 

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

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

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

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

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

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

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

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

 


Send comments on this topic.
1999-2017 Exontrol.COM, Software. All rights reserved.