Spotfire® User Guide

Changing display name for an axis

You can specify your own display name for an axis.

About this task

The display name can be changed for any axis, for example, the X-axis, the Y-axis, or the Color axis.

Procedure

  1. On the axis, click the column selector for the column or expression that you want to change.
    A popover opens that shows which column and aggregation are selected on the axis.
  2. In the field at the bottom of the popover (when using the web client), enter the new display name and press Enter. In the installed client, you might need to first expand the popover to find the display name field.
    The new display name is shown on the axis.
  3. Click outside the popover to close it.

Example

In the bar chart below, the display name on the Value axis is changed from Max(Temp) to Highest temp. The visualization title adjusts automatically (as long as AutoTitle is used for the visualization name).


Change display name

If multiple columns are used on an axis, you can change the display names for each of the columns by repeating the steps above for each separate column selector.

Note: In the installed client, if you are manually editing the expression the display name field will be unavailable until you click Apply in the Edit expression field.

Changing display name on a column selector by modifying the expression

If you are writing complex custom expressions involving more than one column you might want to change the display name on an axis by modifying the expression behind the axis directly using the "AS" keyword.

About this task

Using a simple example, you might have a line chart where the Y-axis shows one line for sum of sales, and another line for sum of gross profit. The column selectors would then appear as seen below:

You might want to shorten the names on the column selectors to say just Sales and Profit respectively. To do that, follow the steps below:

Procedure

  1. Right-click the column selector you want to modify.
  2. Select Custom expression from the menu.
  3. Note that the current expression is Sum([Sales Total]), Sum([Gross Profit]).
  4. Modify the text string to Sum([Sales Total]) AS Sales, Sum([Gross Profit]) AS Profit.
  5. Click OK.

Results

The display names on the two column selectors will now be Sales and Profit: