Difference: CDAxisSetLabelOffset (1 vs. 4)

Revision 42012-02-25 - JeanNeron

Line: 1 to 1
Changed:
<
<
META TOPICPARENT name="CDChartDirectorDesignerAPI"
>
>
META TOPICPARENT name="CDChartDirectorXYChartRoutines"
 

.AXIS SET LBL OFFSET

This subroutine sets the offset of the labels for the the "current" axis.

Revision 32012-01-13 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="CDChartDirectorDesignerAPI"

.AXIS SET LBL OFFSET

Line: 15 to 15
 

Description:

Changed:
<
<
This subroutine sets the offset of the labels for the the "current" axis. This is only useful if you have added labels to the axis via .AXIS LABEL ADD NEXT.
>
>
This subroutine sets the offset of the labels for the the "current" axis. This can be used for axis labels you added via .AXIS LABEL ADD NEXT as well as axis labels that are added automatically by Chart Director (ie, the Y-Axis labels).
  If the parameter is not received or if the value received is blank, then the value is cleared and the default offset will be used.

Revision 22011-12-22 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="CDChartDirectorDesignerAPI"

.AXIS SET LBL OFFSET

Changed:
<
<
This subroutine sets the offset of the labels and the offset units for the the "current" axis.
>
>
This subroutine sets the offset of the labels for the the "current" axis.
 

Usage:

      PASS         <lbl_offset>               FIELD            SHARE? N

Deleted:
<
<
PASS <lbl_unit> FIELD SHARE? N
  GOSUB 0CD .AXIS SET LBL OFFSET
    • Check for error IF 0CD .AXIS SET LBL OFFSET NE
Line: 16 to 15
 

Description:

Changed:
<
<
This subroutine sets the offset of the labels and the offset units for the the "current" axis. This is only useful if you have added labels to the axis via .AXIS LABEL ADD NEXT.
>
>
This subroutine sets the offset of the labels for the the "current" axis. This is only useful if you have added labels to the axis via .AXIS LABEL ADD NEXT.
 
Changed:
<
<
If a parameter is not received or if the value received is blank, then the value is cleared and the default offset will be used.
>
>
If the parameter is not received or if the value received is blank, then the value is cleared and the default offset will be used.
 
Changed:
<
<
The <lbl_offset> if specified, must be in the range 1-999.

<lbl_unit> is optional, and if specified must be either Pixel or Scale. The default is Scale.

>
>
The <lbl_offset> if specified, must be in the range 0.01 to 999.99.
  By default, the labels are center aligned with the ticks. This subroutine is commonly used to shift the labels to put them in between the ticks.
Changed:
<
<
For example, if our X-axis has 5 labels, Monday to Friday, and we use an offset of 1, then Monday will be blank, the Monday label will be under Tuesday's data, Tuesdays' label will be under Wednesdays data, etc. If we use an offset of 10 and a <lbl_unit> of Pixel, then the labels will all be shifted 10 pixels to the right of the tick mark.
>
>
For example, if our X-axis has 5 labels, Monday to Friday, and we use an offset of 1, then Monday will be blank, the Monday label will be under Tuesday's data, Tuesdays' label will be under Wednesdays data, etc. An offset of .5 will put the labels between the ticks. Also see .AXIS SET TICK OFFSET to offset the tick marks instead of the labels.
 

Comments:

Read what other users have said about this page or add your own comments.

Revision 12011-11-11 - JeanNeron

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="CDChartDirectorDesignerAPI"

.AXIS SET LBL OFFSET

This subroutine sets the offset of the labels and the offset units for the the "current" axis.


Usage:

      PASS         <lbl_offset>               FIELD            SHARE? N
      PASS         <lbl_unit>                 FIELD            SHARE? N
      GOSUB    0CD .AXIS SET LBL OFFSET
      *        Check for error
      IF       0CD .AXIS SET LBL OFFSET       NE


Description:

This subroutine sets the offset of the labels and the offset units for the the "current" axis. This is only useful if you have added labels to the axis via .AXIS LABEL ADD NEXT.

If a parameter is not received or if the value received is blank, then the value is cleared and the default offset will be used.

The <lbl_offset> if specified, must be in the range 1-999.

<lbl_unit> is optional, and if specified must be either Pixel or Scale. The default is Scale.

By default, the labels are center aligned with the ticks. This subroutine is commonly used to shift the labels to put them in between the ticks.

For example, if our X-axis has 5 labels, Monday to Friday, and we use an offset of 1, then Monday will be blank, the Monday label will be under Tuesday's data, Tuesdays' label will be under Wednesdays data, etc. If we use an offset of 10 and a <lbl_unit> of Pixel, then the labels will all be shifted 10 pixels to the right of the tick mark.

Comments:

Read what other users have said about this page or add your own comments.


<--/commentPlugin-->

-- JeanNeron - 2011-11-11

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback