Tags:
create new tag
view all tags

.LEGEND SET TEMPLATE

This subroutine sets the template for the style for the "current" legend.


Usage:

      PASS         <template>                 FIELD            SHARE? N
      GOSUB    0CD .LEGEND SET TEMPLATE
      *        Check for error
      IF       0CD .LEGEND SET TEMPLATE       NE

Description:

This subroutine sets a template for the current legend text.

The default template is "{dataSetName}", which means the name of the data set will be used as the legend text. The legend key text can be modified to include other information. For example, in a pie chart, "{label}: {value}" means the legend text will consist of the sector label followed by the sector value.

If you are using CDML in your template, we recommend that you enclose the template text in quotations, otherwise there is a chance that some characters might be interpreted literally instead of as CDML.

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

The parameter is optional, if blank or not passed, it will be reset to the default.

You have to define a Legend box via .CHART SET LEGEND BOX for this subroutine to have any effect.

Comments:

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


-- JeanNeron - 2011-09-27

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