By default, Chart/Table tooltips will inherit the global font family that has been set for the dashboard. When building a chart dashlet, you can customize the tooltip content that appears when you hover over an element of the chart. This customization is applied at the measure level. You also have the ability to control whether a dimension, measure, or series is displayed within the axis label of a chart or only within the tooltips of a chart.
To customize measure tooltips:
- Select a Chart or Table dashlet.
- Click the Edit button in the toolbar at the top of the page.
- Right-click the Y axis label and select Customize Tooltips.
- Use a combination of text, placeholders, and HTML to control what is displayed in a measure's tooltip.
- Dimensions, series, and measures are referenced using curly braces. For example:
{fieldName}
- When a dimension is marked as Show only in Tooltip, it will be automatically added to the chart's measures' custom tooltip templates. The default content that will be added for a dimension is of the form:
fieldName:{fieldName}
- When a series is marked as Add to Tooltip, it will be automatically added to the chart's measures' custom tooltip templates. The default content that will be added is of the form:
{beginRepeat} fieldName:{fieldName} {endRepeat}
Where
{beginRepeat}
and{endRepeat}
create what is referred to as a repeatBlock. Placing a series field name within the repeat block causes every value in the series to be displayed. - By default, a computationName:{computationName} entry will be present in each measure's default tooltip content, to refer to the measure itself.
- Clicking on a measure while editing a dashlet and selecting Tooltip will hide the measure in the chart. The measure can however be included in the tooltips of other measures by referencing it using its
{computationName}
. - In addition to dimensions, series, and measures, different chart types also have different placeholder values that become available when you switch chart types. For example, OHLC charts have: {open}, {high}, {low}, and {close}.
- Dimensions, series, and measures are referenced using curly braces. For example:
- To customize tooltip content using HTML, switch to Source Edit mode by clicking the Source Edit button.
Showing dimensions in tooltips
You can control whether a dimension is shown in the x-axis of the chart by clicking on the dimension while editing a chart dashlet, then selecting Show only in Tooltip.
Selecting this option will remove the dimension from the chart's x-axis labels and add the dimension's values to the chart's tooltips.
Showing series in tooltips
You can control whether a series is shown in a chart's tooltips by clicking on the series while editing a chart dashlet and selecting Add to Tooltip option will be shown.
Selecting this option will remove the series-based entries from your chart and add the series' values to the chart's tooltips.
Showing measures in tooltips
You can control whether a measure is shown in a chart or only in the chart's tooltips by clicking on the measure when editing the chart dashlet and selecting Tooltip.
Selecting this option will remove the measure from your chart but display the measure's values in the tooltips of any remaining chart elements representing other measures.