Zooming and Panning in Bar Graphs

How to:

When you invoke the Graph Editor, you can zoom in and out in a bar graph and pan across areas of the displayed data. These features are particularly useful when you have several data elements closely spaced together.


Top of page

x
Procedure: How to Zoom
  1. Select Turn Zoom On from the File menu. You can now enlarge an area of the graph to enhance your view.
  2. Click anywhere in a chart (graph), then hold the mouse button down and draw a box around the area where you want to zoom in. The outlined region automatically increases in size to fit the screen.

    Note: You cannot perform other types of edits in this mode. For example, to change the font, first select Turn Zoom Off. Similarly, you cannot drill down from graphs that are saved in a zoomed state.

  3. If you wish, you can save the chart in its zoomed state when you exit the Editor and update the graph procedure (FOCEXEC).

    Note: To return the graph to its original state, select Turn Zoom Off from the File menu or double-click anywhere in the graph.


Top of page

x
Procedure: How to Pan Across Groups of Data in a Zoomed Graph
  1. In a zoomed graph, select Data Scrolling from the Graph menu.
  2. You can now either:
    • Drag the solid column that represents the zoomed data to view other data (other columns are highlighted in red as you pan).

      or

    • Click subsequent sections of the thin highlighted bar ("handle") at the bottom of the graph. The zoomed data changes as you click each section.


Example: Zooming and Panning

The following image shows a graph in its normal state (indicated by the solid rectangle under the Data Scrolling menu). In the graph, each data group (bar) represents one car.

Data Scrolling options in the Graph Editor

The next graph shows an enlarged area after zooming in on the bar for BMW. Notice that the large solid rectangle in the right panel now appears as a grid with only one solid column.

Data Scrolling options in the Graph Editor

To pan across groups of data, with the graph in the zoomed state and Data Scrolling selected from the Graph menu, drag the solid column that represents the zoomed data to pan across all of your data.

or

Click the thin shaded bar at the bottom of the graph to view other areas of your graph in a zoomed state. Note that this method of panning is available when subsequently running the graph, provided that it was saved in its zoomed state.


WebFOCUS