Table Of Contents

Previous topic

SQLite (SQL)

Next topic

Creation of a Diagram Template

This Page

Stacked Diagrams with Multiple Y-Axes

The following figure is a stacked diagram. The y-axes are distributed on the left and right side of the diagram. All y-axes share one x-axis at the bottom.

../../_images/ov-b.png

A stacked diagram is created of multiple single diagrams which we will call layers. Each layer displays a y-axis on the left or right diagram side. The axis scaling can only be set so that the major tick marks meet the diagram grid. The axes can only scaled linear.

To display the diagram grid a separate layer is used which in the z-order is behind all other layers of the stacked diagram. This layer is also used to display the x-axis.

Creation of a Stacked Diagram

  • First create a diagram and set the diagram name to Grid. Double-click the diagram and click the Name button to set the name.

    If the page contains multiple stacked diagrams, set the name to Grid2, Grid3, etc. The name must start with the prefix Grid.

    ../../_images/ov-b-step-1.png
  • Add one layer for each y-axis to the diagram. For now it is only important that the new layer overlaps a bit with the Grid layer.

    ../../_images/ov-b-step-2.png
  • Now select one of the layers and choose diagramcreate-stacked-diagram.

../../_images/ov-b-step-3.png

The function searches for a layer name starting with Grid. In the second step the function finds all layers which overlap with the Grid-layer.

A layer of a stacked diagram displays only two handles instead of eight to change the layer size. These handles are displayed in the middle of the top and bottom edge. They can be used to change the length of the y-axis.

  • To move a y-axis, click on the axis title or axis label. The axis will be displayed as a thin red bar. Drag the axis the new location. If you hold down the SHIFT-key and drag the axis to the opposite side of the diagram the diagram label and title will be moved to the outside side.

Features of a Stacked Diagram

  • All layers have the same width as the Grid layer and share the same x-axis.
  • The grid is set by the axes scaling of the Grid layer.
  • Grid layers are selected by clicking the x-axis.
  • The datasets are clipped at the Grid layer boundary. To enable clipping for one y-axis double-click the diagramm and select the clip option.
  • To set the position and size of the stacked diagram select the Grid layer and drag it to the new location. Use the edge of the Grid layer to drag it. To change the side drag one of the 8 handles (the grid will display 8 handles).

Editing the Grid Division

Select the grid layer by clicking on the x-axis. Click on the Layer_YAxisParameter button to edit the y-axis scaling. The parameters Minimum, Maximum and Delta set the number of grid lines. The number of grid lines along the x-axis are set accordingly.

Adding a y-axis to the Stacked Diagram

To add a new y-axis, draw a new diagram (Button Layer_New or choose Diagram=>Add new Diagram). The new diagram must overlap the stacked diagram. To add the diagram to the stacked diagram right click on the new diagram and choose diagramcreate-stacked-diagram.

Configuration

To set the font: Choose diagramselect-all-diagrams and choose the font, font size or color from the Text Format Toolbar.

Clipping

When the stacked diagram is created clipping is enabled for the grid layer and disabled for the all y-axes. To enable clipping for one y-axis: Double-click the diagram and enable clipping in the Diagram=>Diagram Settings dialog box.

id-1330579