Spotfire® User Guide

Adding and configuring reference elements

You can add reference elements to your visualization to include more information and context.

Before you begin

You must have the Add and configure enhancing layers license feature, and the analysis must be in Editing mode.

You have created a visualization which has a continuous X- or Y-axis.

Note: In the context of reference elements, the visualization is also referred to as the parent visualization.

Procedure

  1. Click next to the visualization title in the visualization properties panel, and select Reference layer.
    A reference layer is automatically added to the visualization with a configured Line.
  2. If you do not want to configure a line, remove the Line card by clicking X.
  3. Click Add , and select a reference element. In addition to Line, you can choose Marker, Box, or Band.
  4. In the Data card for the reference layer, you can make the same configurations as in the parent visualization, such as define what data table to use, define data limitations, and how to handle an empty layer when marking limitations exist.
  5. In the Value card, edit the expression that determines how the reference element is calculated. If the layer data table is the same as the parent, the default expression is [Axis.Y.Expression]. This refers to the expression that is configured on the Y-axis of the parent visualization.
    Tip: It is also possible to configure the reference elements based on a different data table than the parent visualization. For an example, see Using reference elements to show event bands from another data table.
    Note: The reference element is by default drawn on the Y-axis. When the X-axis of the parent visualization is continuous, you can also choose to draw the reference element on the X-axis. You can change this in the Appearance tab under Draw on.
  6. For bands and boxes, you can configure a Secondary value to determine the area they should occupy, that is, the area between what is specified in Value and Secondary value. If no secondary value is configured, the band or box occupies the entire area below what is configured in Value. If you configure a secondary value for a line or marker, a second line or marker is shown.
    Tip: For lines and boxes, you can also specify the horizontal span in the Appearance tab under Reference elements span. Note that the settings under Appearance apply to all reference elements in the selected layers.
  7. If you want to split the reference element by category, color, series, element by, or trellis, click Add , and select the one you want to use.
    For properties that require inherited configurations, you can only apply a splitting to the reference element when the corresponding property is configured in the parent visualization. Click on the Navigate to parent and configure button in the card in the reference layer, to go directly to the respective configuration in the parent visualization. Element by and Color by support independent configuration, making it possible to split the reference layer further.
    Tip: When you have added a reference element to a side-by-side bar chart with both Category by and Color by configured, you can choose to position the reference element on each category or on each side-by-side bar individually. You can change this in the Appearance tab under Position on each.
  8. In the Line, Marker, Band, and Box cards, you can adjust several settings, for example, the line style, marker shape, whether to fill the band or box area, show borders, or change the coloring.
    Tip: By default, the reference element follows the default theme color in Spotfire or, when Color by is applied, it is controlled by data. When Color by is configured to use inherited scale, you can drag the Color value adjustment slider to the left to add black (shade), or to the right to add white (tint), to the color. You can also select a specific color to override the default.
  9. Repeat steps 1 to 7 to add more reference layers or elements to your visualization.

Results

The reference element is added to the visualization.

You can edit things like the labels and tooltips, to show the value or display name in the visualization, or what information to show when you hover over the reference element.

You can also add a Line connection to visualize trends.

The order of the reference layers determines the drawing order of the reference elements. To change the order, click next to the layer name and select Move up or Move down.

Under Appearance , you can also choose to place the reference elements in the selected layers in the background or foreground of the parent visualization.

You can organize your reference layers into groups to easily move or configure them simultaneously. To create a new group, click next to the visualization title and select Group. To remove a reference layer from a group or add it to a different group, click next to the layer name, click Edit grouping, and select an option.

You can rename your reference layers or groups, by either double-clicking the name or by selecting Rename layer or Rename group from the context menu .

To delete a reference layer or group, click , and select Delete layer or Delete group. In the same way, you can hide or duplicate a layer or group.