There is a options control to put a text box above a graph. To put the textbox to the left "al" can be used, and to the right "ar". See code and graph 1.
However, in my opinion, the textbox places too far to the right when using "al" (and vice versa).
One suggestion is that the textbox is placed in the left-hand of the scale when using "al" (or a new "options control"). The same with "ar" but vice versa. See graph 2.
If that isn't possible another suggestion that the user could indicate which corner of the textbox the virtual coordinates are linked to. The manual says, "To place text within a graph, you can use explicit coordinates to specify the position of the upper left corner of the text". If the user could choose between
upper left corner (default)
upper right corner
lower left corner
lower right corner
it would be great
Code: Select all
WfCreate(page=a) a 2000 2010
Graph g1.line x
%t1 = "Textposition with\roptions control " + @Chr(34) + "al"+ @Chr(34)
%t2 = "Textposition with\roptions control " + @Chr(34) + "ar"+ @Chr(34)