Tags:
tag this topic
create new tag
view all tags
---+ .LEGEND KEY INTIALIZE _This subroutine adds a new legend key to the "current" Legend Box at the specified priority._ <br />%TOC% ---++ Usage: <pre> 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 </pre> ---++ 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 [[CDLegendKeyAddNext][.LEGEND KEY ADD NEXT]] start at 1 and increment by 1. You can also reverse the order with [[CDLegendSetKeyOrder][.LEGEND SET KEY ORDER]] <strong><legend_text> </strong>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 [[CDChartSetLegendBox][.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._ <br />%COMMENT% -- Main.JeanNeron - 2011-09-28
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r3 - 2012-02-19
-
JeanNeron
Home
Site map
Main web
MedicaidBilling web
Sandbox web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
E
dit
A
ttach
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback