Spotfire® User Guide

Adding or editing tooltip values in a visualization

You can choose what to show in the tooltip when hovering over an item in the visualization.

About this task



Before you begin

A visualization that supports editing of tooltips must be available.
Note: Most table visualizations do not support editing tooltips.

When adding tooltip values to a box plot, the custom tooltip values are only shown for outliers, not for the boxes.

Only tooltip values that you (an author) has added to the list can be edited or removed completely, not the default values. You can always hide all tooltip values if desired.

Procedure

  1. In the Visualization properties, locate the Tooltip section.


  2. Add or remove values from the list. To remove a value click the cross next to the value (or clear the check box in the Visualization Properties dialog). To add more values, click Add values (or Add in the Visualization Properties dialog). For more information about adding custom tooltip values, see the example below.
    You can add content from another column, hierarchy, or any custom expression to be shown in the tooltip. You can also use images in tooltips.
  3. You can choose the Tooltip format for all selected values. Click settings in the visualization properties panel to show the Tooltip format controls there.
    • Value names and values presents the tooltip content in a format showing the selected column name, hierarchy or custom expression. For example, Year: 2003, Type: Cucumber, etc.
    • Visualization properties and values presents the tooltip content in a format where the visualization property for each value is displayed. For example, X: 2003, Color: Cucumber, etc.
  4. You can change the order of values in the tooltip by moving values up or down in the list.
  5. If a custom value has more settings, you can edit them by selecting the value and making the desired changes, either directly in the Visualization properties panel, or in the Edit Tooltip Value dialog.

Results

The tooltip shown when hovering over items in the visualization is updated.

Showing other items, such as images, geometries or molecular structures in a tooltip

When defining a custom tooltip you can select a column or expression you wish to be visible in the tooltip. The column or expression selected is used as a default name but it is possible to change the name in the Edit Tooltip Value dialog (from the Visualization Properties dialog). (To exclude the name completely from the tooltip, clear the Include value name in tooltip check box instead.)

If you want to show images from a binary image column or a geometry column in your data table, you select that column directly. In some cases, like when you want to display linked chemical structures, you will instead select an ID column here, which at a later step is mapped against the desired output.

Your company might have configured some type of virtual column producers that can take the values from the selected column and transform them in one way or another, to produce a desired output. In that case, you will see an entry called Get content from, in the settings for your custom value. For example, you might be able to select Structure Column here, to show molecular structures from an information link in the tooltips.

For embedded images in the current data table, or when fetching data via a URL, you should leave this setting at (Selected column).

If the selected source has some settings available, you can reach those by clicking on the Settings button next to Get content from.

For example, this is where you would specify which information link to retrieve structures from, if your company has enabled a virtual column producer for showing chemical structures.

The Show as drop-down list lets you select how the data in the selected column should be interpreted.

For example, use Text for plain text labels. Use Image if there are binary images in your data that you want to use in the tooltips. Use Link if the text should be interpreted as a web link. Use Image from URL if the image is picked from a web resource location. Use Geometry if your data is a shapefile or GeoJSON file and you want to show the geometrical shapes in the tooltips.

If the selected Show as method has settings that can be modified, you can reach them by clicking Settings. See Renderer settings for more information about some common renderers.

If the selected tooltip value is some kind of image, you can increase or decrease the size of the image using the slider.