Changing a graph's position and size

When you first place a graph in a DataWindow object, it is in the foreground—it sits above the bands in the DataWindow object. Unless you change this setting, the graph displays in front of any retrieved data.

The initial graph is also moveable and resizable, so users have complete flexibility as to the size and location of a graph at runtime. You can change these properties.

StepsTo specify a graph's position and size:

  1. Select Properties from the graph's pop-up menu and then select the Layout category or the Appearance category in the Properties window.

  2. Select the settings for the following options in the Position category:

    Table 14-4: Settings in the Position category for graphs

    Setting

    Meaning

    Layer

    Background — The graph displays behind other elements in the DataWindow object.

    Band — The graph displays in one particular band. If you choose this setting, you should resize the band to fit the graph. Often you will want to place a graph in the Footer band. As users scroll through rows in the DataWindow object, the graph remains at the bottom of the screen as part of the footer.

    Foreground — (Default) The graph displays above all other elements in the DataWindow object. Typically, if you choose this setting, you also make the graph movable so it will not obscure data while users display the DataWindow object.

    Moveable

    The graph can be moved in the Preview view and at runtime.

    Resizable

    The graph can be resized in the Preview view and at runtime.

    SlideLeft, SlideUp

    The graph slides to the left or up to remove extra white space. For more information, see “Sliding controls to remove blank space in a DataWindow object”.

    X, Y

    The location of the upper-left corner of the graph.

    Width, Height

    The width and height of the graph.

  3. Select the settings for the following options in the General category:

    Table 14-5: Size and position settings in the Appearance category

    Setting

    Meaning

    SizeToDisplay

    The graph fills the DataWindow object and resizes when users resize the DataWindow object. This setting is used with the Graph presentation style.

    HideSnaked

    Do not repeat graph after the first column in a DataWindow object using newspaper-style columns.