- Single Value Chart Options
- Style Menu Options
- Comparison Menu Options
Single Value Chart Options
This page describes the options for editing single value charts in the visualization menu. This menu can be accessed by clicking the gear in the upper right corner of the visualization tab.
The single value visualization always displays a value from the first row. Use sorting and filtering as needed so that the desired data is in the first row. A single value visualization uses, in priority order:
- the leftmost measure
- the leftmost table calculation based on a measure
- the leftmost dimension
- the leftmost table calculation that does not involve a measure
You can change which field is used in the visualization by dragging fields to change their position, or by hiding fields from the visualization that you don’t want displayed.
Single value visualizations have automatic font sizing. Analytics chooses the largest standard font size that fully displays the current value. When there are several single value visualizations on a dashboard, Looker ensures that they all display using the same font size, giving a consistent appearance. Since data can change, Analytics dynamically adjusts the font size to fit the current data. If even the smallest standard size cannot show the entire value in the space available (such as the dashboard tile) then the value is truncated by an ellipsis (…).
Please note that some of the options listed in the menu may be grayed out or hidden in situations where they would conflict with other settings you have chosen.
Style Menu Options
Custom Color enables you to set the color of the single value visualization. If you leave this setting off single value visualizations use a dark grey font color.
When you turn on Custom Color, Analytics displays a color box to its right. Click on the box to bring up a color picker where you can select a color, input a hex string like
#2ca6cd, or input a CSS named color string like
mediumblue. Analytics will use the selected color for single value visualizations both with and without hyperlinks.
Depending on your use case, consider using the following alternate techniques:
- Much of the time the desire to change font color is related to showing good or bad results. This use case can be best handled by turning on the Show Comparison option and choosing Show as Change.
Show Title determines whether or not a title is displayed under the number. For a saved Look, the default title is the name of the Look. You also can specify a different title using the Title field.
Title specifies the title that you want to display with the value. This field is available when Show Title is on. For a saved Look, if this field is left empty, the title defaults to the name of the saved Look.
Value Format specifies the format of the value, independent of the underlying dimension or measure. The field accepts Excel-style formatting. If no formatting is specified, the value will be displayed in the format of the underlying dimension or measure.
You can read Excel's complete guide about how to specify these formats in their documentation. However, note that color formatting is not supported in Analytics.
Using this field, you can specify the formatting of numeric values. Some of the most common formatting options are shown here:
|Integer zero-padded to 3 places (001)
|Number up to 2 decimals (1. or 1.2 or 1.23)
|Number with exactly 2 decimals (1.23)
|Number zero-padded to 3 places and exactly 2 decimals (001.23)
|Number with comma between thousands (1,234)
|Number with comma between thousands and 2 decimals (1,234.00)
|Number in millions with 3 decimals (1.234 M). Please note division by 1 million happens automatically.
|Dollars with 0 decimals ($123)
|Dollars with 2 decimals ($123.00)
|Dollars with comma between thousands and 2 decimals ($1,234.00)
|Percent with 0 decimals (1%). Please note multiplication by 100 happens automatically.
|Percent with 2 decimals (1.00%). Please note multiplication by 100 happens automatically.
|Percent with 2 decimals (1.00%). Multiplication by 100 does NOT happen automatically here.
Comparison Menu Options
Show Comparison enables you to use a second field to add comparison information to your single value visualization. In general, the comparison value uses the next field that would be displayed as the single value visualization. You can affect which field is displayed by changing the order of fields or choosing Hide from Visualization for fields that you want to skip.
Style specifies how the comparison field is used in the single value visualization. The following options are available:
Show as Value - The value of the comparison field is displayed at the bottom.
- Show as Change - The value of the comparison field is displayed at the bottom. If the value is negative, a triangle points downwards. If the value is positive, the triangle points upward. By default, a negative number is displayed in red with a red triangle and a positive number is displayed in green with a green triangle. These colors can be changed using the Positive Numbers Are Bad field. Analytics does not automatically calculate any rate of change when you use this option; it just uses the raw value you provide. Therefore, you must choose a field or create a table calculation to provide the value.
- Calculate Progress - The value of the field used for the single value visualization is divided by the comparison field's value. This percentage is displayed as a progress bar.
- Calculate Progress (with Percentage) - The value of the field used for the single value visualization is divided by the comparison field's value. This percentage is displayed as a progress bar. The bar is labeled with the percentage and the value of the comparison field, such as
88% of $500,000. If Show Label is
Onthen the progress bar also shows the label for the comparison field, such as
88% of $500,000 Monthly Target.
Positive Values Are Bad
Positive Values Are Bad specifies the text and triangle colors displayed for the comparison field. When Positive Values Are Bad is set to On, Analytics displays the negative numbers as green text with a green triangle, while positive numbers appear as red text with a red triangle. This parameter is only available when the Style is set to Show as Change.
Show Label determines whether or not a label is shown with the comparison field. By default, the label is the name of the comparison field.
Label enables you to provide a different label to the comparison field's name. This option is only available when Show Label is on.