Spotfire® User Guide

Positioning markers on an image background

The background of the markers in a map chart does not have to be geographical; you can position markers on any spatial background. You can use an image layer instead of a map layer. To exemplify, your image in the image layer can represent a human body, where you place markers showing medical data, or a drawing of a hotel, where the room occupancy or other data is shown. However, positioning markers on top of an image layer requires that your data contains appropriate X and Y coordinates.

About this task

Example
The data table below contains weather data at a certain location during August. The weather types are Sun, Partly clouded, and Showers:
Data table
Assume you want to use the image below to illustrate the weather types, and, below the illustrations, place markers that indicate the total number of sunny, partly clouded, and rainy days, respectively:
Background image

The following explains how you place the markers where you want them on the image. The key is to let the image and markers use a common coordinate reference system.

To do so, imagine a coordinate system on top of the image as shown below. You can specify any X and Y ranges provided that the same scale is used on both axes. In this imagined coordinate system, the X values range from 0 to 10, and the Y values from 0 to 5:
Coordinate reference system on top of image
Then, use this imagined coordinate system to assign coordinates to your marker positions, and add them as X- and Y-columns to the data table. The 'Sun' marker is placed at (1.5,1), the 'Partly clouded' marker at (5,1) and the 'Showers' marker at (8.3,1).
Data table containing coordinates

Now all is set for creating the map chart, where markers are positioned on top of an image.

Procedure

  1. Load the data table, and create a map chart.
  2. Open the visualization properties for the map chart.
  3. In the list of layers, remove the Map layer.
    See Working with layers for details on how to remove a layer.
  4. Add a new Image layer.
    Important: When prompted whether you want to add the image as a background, make sure to select Use image as background (or Yes if you use the visualization properties dialog).

  5. In the visualization properties for the image layer, locate the position settings.
    In the visualization properties panel, the Image position settings are under Image configuration. In the visualization properties dialog of the installed client, the Position settings are on the Data page.
  6. Enter the max and min of the X- and Y-values that are used to specify the imagined coordinate reference system, that is, the coordinate reference system in which the markers' coordinates are set.
    Image settings in the visualization properties panel:

    Image settings in the visualization properties dialog:

    Note: You might need to click Zoom to filtered items in the navigation control of the map chart, to see the updated image and markers.

Results

The result is shown below. In addition to the steps above, the labels and sizes of the markers are set to Count(Weather).


Tip: Another way to help defining the extent of the image can be to filter the data which should be placed on the image before you add the actual image. For example, to place a drawing with different African animals on a map, if you have a feature layer showing shapes you can filter out all shapes except for Africa and then add the image. This will automatically add the image behind (or over) the Africa shapes and you can fine tune its positioning later.