The location of the legend in a Graph control in a DataWindow.
Graph controls
PowerBuilder dot notation:
dw_control.Object.graphname.Legend
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:
Value can be a quoted DataWindow expression. |
Select the control and set the value in the Properties view, General tab, Legend option (applicable when the graph has more than one series).
string setting
setting = dw1.Object.graph_1.Legend
dw1.Object.graph_1.Legend = 2
setting = dw1.Describe("graph_1.Legend")
dw1.Modify("graph_1.Legend=2")
dw1.Modify("graph_1.Legend='2~tIf(dept_id=200,0,2)'")