Tags:
create new tag
view all tags

.PIE SET LBL FORMAT

This subroutine sets format for pie sector labels for all pie sectors, a range of pie sectors, an individual pie sector, or the "current" pie sector.


Usage:

      PASS         <lbl_format>               FIELD            SHARE? N    
      PASS         <beg_sect_no>              FIELD            SHARE? N
      PASS         <end_sect_no>              FIELD            SHARE? N
      GOSUB    0CD .PIE SET LBL FORMAT
      *        Check for error
      IF       0CD .PIE SET LBL FORMAT        NE

Description:

This subroutine sets the format for the pie sector labels for all pie sectors, a range of pie sectors, an individual pie sector, or the "current" pie sector.

The default label format depends on the label layout method (see .PIE SET LBL LAYOUT). For Circular layout, the default is "{label}<*br*>{percent}%" and for Side layout the default is "{label} ({percent}%)"

As of this writing, you must enclose the template text in quotations, otherwise the chart will not render. For example, set it to "{label}: {value}", not {label}: {value}.

Please refer to Parameter Substitution and Formatting in the Chart Director documentation for all available parameters and how to format them.

If <lbl_format> is not received or is blank, then the "current" pie sector will be rendered with the default format.

If <beg_sect_no> is "ALL" or "0" and <end_sect_no> is not received or is blank, then <lbl_format> applies to all pie

sectors.

If <beg_sect_no> and <end_sect_no> are both received and are both numeric integers, then <lbl_format> applies to the range

of pie sectors from <beg_sect_no> thru <end_sect_no> and is stored in the corresponding pie sector specs.

If <beg_sect_no> is received and is a numeric integer and <end_sect_no> is not received or is blank, then <lbl_format>

applies only to the <beg_sect_no> pie sector and is stored in the <beg_sect_no> pie sector spec.

If <beg_sect_no> and <end_sect_no> are both not received or are blank, then <lbl_format> applies to the "current" pie sector and is stored in the "current" pie sector spec.

Any pie sector specs that are referenced but which do not exist are automatically created and initialized so that the <lbl_format> can be stored.

The last pie sector spec updated becomes the "current" pie sector spec.

Comments:

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


-- JeanNeron - 2011-10-06

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2012-02-24 - JeanNeron
 
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