Legend

Description

The location of the legend in a Graph control in a DataWindow.

Applies to

Graph controls

Syntax

Describe and Modify argument:

"graphname.Legend { = ' value ' }"

Parameter

Description

graphname

The name of the graph control for which you want to specify the location of the legend.

value

(exp) A number indicating the location of the legend of a graph.

Values are:

  • 0 – None

  • 1 – Left

  • 2 – Right

  • 3 – Top

  • 4 – Bottom

Value can be a quoted DataWindow expression.

Usage


In the painter

Select the control and set the value in the Properties view, General tab, Legend option (applicable when the graph has more than one series).

Examples

Example 1

setting = dw1.Describe("graph_1.Legend")

dw1.Modify("graph_1.Legend=2")

dw1.Modify("graph_1.Legend='2~tIf(dept_id=200,0,2)'")