.LEGEND KEY INTIALIZE
This subroutine adds a new legend key to the "current" Legend Box at the specified priority.
Usage:
PASS <entry_priority> FIELD SHARE? N
PASS <legend_text> FIELD SHARE? N
PASS <color_spec_name> FIELD SHARE? N
* OR
PASS <color_value> FIELD SHARE? N
PASS <line_width> FIELD SHARE? N
PASS <draw_area> FIELD SHARE? N
GOSUB 0CD .LEGEND KEY INITIALIZE
* Check for error
IF 0CD .LEGEND KEY INITIALIZE NE
Description:
This subroutine adds a new legend key to the "current" Legend Box with the specified priority.
<entry_priority> is a required field, and must be an integer between 0-9999999. Key priorities that are added automatically by Chart Director start at 10000 and increment by 10000 for every legend key. Key priorities you add manually via
.LEGEND KEY ADD NEXT start at 1 and increment by 1. You can also reverse the order with
.LEGEND SET KEY ORDER
<legend_text> is the text you want added to the legend
<color_spec_name> or
<color_value> is the color that should be used to render the text.
<line_width> is the line width for legend entry that represents lines in line charts. Must be an unsigned integer between 0-999.
<draw_area> is a Draw Area containing the data symbol that represents the legend entry. This is primarily used for legend entries in line charts with data symbols, or in scatter charts.
Parameters other than
<entry_priority> are optional and will default to blank or zero.
After adding the legend key, the color_spec spec becomes the "current" color spec and the legend key will become the "current" legend key.
You have to define a Legend box via
.CHART SET LEGEND BOX for this subroutine to have any effect.
See
ColorSpec for more information on working with colors.
Comments:
Read what other users have said about this page or add your own comments.
--
JeanNeron - 2011-09-28