--- title: Single score component setup description: The Single score component is a visualization type within Data visualization that lets you create single score visualizations.Select the data source for the Single score Data visualization with these properties.These properties configure how table data is presented on Single Score visualizations.These properties configure how indicator data is presented on Single Score visualizations.These properties configure how Usage Insights data is presented on Single Score visualizations.These properties configure how Health Log Analytics data is presented on single score visualizations.These properties apply to Single Score visualizations for all data sources. Access them through the Format values link under Metric.Select event handlers to configure the actions \(events\) provided with the Single score component. locale: en-US canonical_url: https://www.servicenow.com/docs/r/application-development/ui-builder/single-score-component-uib-setup.html release: brazil product: UI Builder classification: ui-builder topic_type: task last_updated: "2026-09-10" reading_time_minutes: 27 breadcrumb: [UIB Setup Information, UI Builder, Builder library, Developing your application, Classic app development, Building applications] --- # Single score component setup The Single score component is a visualization type within Data visualization that lets you create single score visualizations. ## Before you begin This task assumes you have placed the component on the page and are ready to configure the properties and events. For instructions on accessing and using features in UI Builder, see [Customize UI Builder pages using components](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/work-components.md). **Note:** This document describes the latest component functionality. Go to the store to make sure you have the latest version of the component. Role required: admin or ui\_builder\_admin ## Procedure 1. Define a label for your Data visualization that differentiates it from other components in the content tree. A descriptive label makes finding the component easier in a large list of components. For instructions on using the content tree, see [Manage UI pages and page variants](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/work-pages.md). \[Omitted image "data-vis-content-tree.png"\] Alt text: Data Visualization component with label displayed in the content tree 2. Select the Data visualization, using one of these methods: - Click anywhere within the component. - Select the data visualization label you created for your component in the content tree. The property fields appear in the **Config** tab in the setup panel on the right. 3. Select the Single Score **Data Visualization Type**. The available data sources and properties change depending on the selected chart type. 4. Click **Add data source** to select a table, indicator, or \(if enabled\) Usage Insights data source to base a visualization on. Alternatively, you can define the data manually in JSON or use a local data instance. 5. Add filters to the data as needed. 6. Click **Add this source** to add your selected data source. **Parent Topic:**[UIB Setup Information](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/uib-setup-information.md) ## Single Score visualization component properties Select the data source for the Single score Data visualization with these properties. To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type. - **Data binding**: Enables you to create dynamic property values derived from multiple sources, such as state variables \(@state\) in the page, URL variables \(@context\), or payloads from a data resource \(@data\). For details, see [Add and configure data resources to a page](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/add-data-resources.md). - **Scripting**: Creates a scripted property value. For details on scripted values, see [Create and bind a client state parameter to a component](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/state-parameters.md).
Field \[property\] Description
Show header \[showHeader\] The visualization header, including title and icons.
Show header separator \[showHeaderSeparator\] Option to display a line separating the header from the rest of the component.
Chart title \[headerTitle\] Title of the visualization.
Description \[description\] A short overview about the visualization that the end user sees. Descriptions help users find the visualization.
Wrap title \[wrapTitle\] Option to wrap long titles onto a second line. If false, displays an ellipsis to truncate long titles.
Show border \[showBorder\] Option to display a line around the component.
Show refresh option Option to show or hide the refresh option from data visualizations. If cache is enabled on a dashboard, the Refresh option is hidden.
Bare \[bareBorder\] Option to remove padding around data visualization to provide more compact positioning on the page. Only available when **Show border** is turned off.
Field \[property\] Description
Define data manually \[showDataPassthrough\] Option to pass data/values directly to the chart using JSON instead of using standard data sources.
Data \[dataPassthrough\] JSON field for manually passing data. Replaces the **Data sources** property when **Define data manually** is toggled on. You can also bind a local data instance to this field. The local data resource instance must be based on one of the data resources of the Data visualization core application. Use a different local data resource instance for each type of data visualization on your page. Configure each local data resource instance to fit the visualization type. The data binding must end in `.output.result`. \[Omitted image "data-viz-data-source-binding.png"\] Alt text: Local data binding instance bound to data visualization. For more information, see [Dynamically expose data in UI Builder pages \(advanced feature\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/data-resources.md) and [Use a local data instance with a data visualization](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/now-intelligence/dv-local-data-instance.md).
Data sources \[dataSources\] The data source that the visualization is based on. Select from the following:- Table: The current state of your data, as it is stored in an underlying database table. You can define conditions to filter the table entries or select from sets of predefined conditions on the table. These predefined conditions are also called [Report sources](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/now-intelligence/c_ReportSources.md). If you define custom conditions, you can use questions or service catalog variables that are defined for the table. - Indicator: Key performance indicators \(KPIs\) for tracking changes in your data over time. Use an indicator data source to show trends and help forecast future events. For more information, see [Performance Analytics indicators](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/now-intelligence/c_Indicators.md). Data visualizations do not support benchmarking indicators \(Benchmarking indicator = true\). You can select breakdowns and breakdown elements to filter the indicators. The operators "is one of" and "is \(dynamic\)" are available if the indicator and breakdown support multi-element aggregation. For more information, see [Conditional filters and operators for indicators and breakdowns](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/now-intelligence/condition-operators-ind-bkdowns.md#section_breakdown-operators). The ability to create data visualizations of indicators can be role-restricted on your instance in the **par\_vis\_config.data\_source.can\_select\_indicator** property. - Usage Insights: Usage metrics of your Next Experience web applications and others. For more information, see [Usage Insights](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/now-intelligence/user-exp-analytics-landing.md). To include Usage Insights data sources in your visualizations, install the Usage Insights in PAR Integration application from the ServiceNow store. The available metrics depend on the visualization type. For more information about using these data sources, see [Usage Insights data sources for visualizations](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/now-intelligence/uxa-data-sources.md). - Health Log Analytics: Analysis of log data from multiple sources to identify potential issues. Plugins for the application include dashboards and data visualizations, and the data visualizations are available in the library for reuse. For more information, see [Health Log Analytics](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/it-operations-management/hla-landing-page.md). Data visualizations for Health Log Analytics can be created or edited only in the UI Builder.
After selecting the data source, configure the appropriate data properties: - Table data properties - Indicator data properties - Usage Insights data properties - Health Log Analytics data properties To find the tables for each of these properties, search for each table title on this page in your browser search function.
Field \[property\] Description
**Display settings**
Score size \[scoreSize\] Sets the size of the score. Options include: - XS `xs` - S `sm` - M `md` - L `lg` - XL `xl` - XXL `xxl` - Auto `auto`: Size adjusts automatically between the preceding sizes depending on the viewport size and the space available after all details have been added in the **Additional settings**.
Score icon \[scoreIcon\] Select one of the icons provided with the design system to precede the score. Optional. **Note:** See [https://developer.servicenow.com/dev.do\#!/reference/next-experience/xanadu/now-components/now-icon/gallery](https://developer.servicenow.com/dev.do#!/reference/next-experience/xanadu/now-components/now-icon/gallery) for more information.
Icon style \[iconStyle\] Select "With background" to apply color to the background of the icon. Select "No background" to apply color to the icon itself.
Sparkline style \[sparklineStyle\] Style of sparkline chart. Options include:- Area `area`: Option to display the sparkline as a line with the area between its points and the horizontal axis colored in. - Line `line`: Option to display the sparkline as a line. This property applies only with indicator data sources and when **Show sparkline** is true.
Metric label position \[headingPosition\] Position for the metric label. Options include:- Above score `top` - Below score `bottom` This property applies only with table data sources and when **Show metric label** is true.
Colors
Set color type \[type\] Type of color scheme to apply to the component. Options include: - Default `default`: A color from the UX Theme Properties \[sys\_ux\_theme\_property\] table. The specific colors depend on which theme variant in the UX Themes \[sys\_ux\_theme\] table is applied to the instance. - Single color/Colors per metric `singleColor`: Select a single color in the **Set value color** field. You can select the color from a set of icons, from a list of colors including their icons, or by searching for the color name or hexadecimal value. The colors are taken from the Color Definition \[sys\_report\_color\] table. If the visualization has more than one metric, you see the Colors per metric option instead. This option lets you select a single color \[singleColor\] for each metric.
Color \[color\] Single color to apply to the component. **Note:** Only available when **Set color type** is **Single color**.
Color rules \[rules\] Define dynamic colors based on rules. For example, you can set a metric to display in blue if the metric's value is less than 100. For more information, see [Create coloring rules for data visualizations](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/now-intelligence/colors-dv.md).
Add rule Open a dialog to add a color rule. See the properties in the **Color rule** section below to add a color rule.
Color rule
Operator \[operator\] Operator used when evaluating values, such as **greater than** or **between**. For example, to style values of less than 5, select **lower than** and specify **Value** as 5.
Value 1, Value 2 \[value1, value2\] \("between" operator\)Value \[value\] \(all other operators\) The value to apply to the operator. For example, if greater than 50, set the metric to red. For the "between" operator, select two values. The specified color is used to display values between these values.
Color \[color\] Font color to apply to values that match this rule.
Order \[order\] A numerical value that determines the order in which the rules apply. The system applies rules in the order of smallest to largest.
### Table data properties These properties configure how table data is presented on Single Score visualizations.
Field \[property\] Description
Metric for Table data sources
Label \[label\] Label of the metric. By default it is the same as the name of the data source.**Note:** If you have multiple metrics on the same data source, consider giving them custom labels. If you are defining group-by fields or breakdowns, this is particularly important. Chart labels in this case show both the metric label and the group-by value, so the metrics need different labels.
Select an aggregation \[aggregateFunction\] Computational method for aggregating data. The default is **Count**, which displays the number of records selected.**Note:** If you select **Count Distinct**, only unique records are counted. For example, you want to generate a report with a distinct number of users who have one or more of the roles in a given list of roles. Users with more than one role would be counted twice unless you use **Count Distinct**.
Field \[aggregateField\] Field to apply the metric to, for **Average**, **Sum**, or **Count Distinct** aggregations. You may further be able to aggregate on fields from extended tables.The data is shown in a format that matches the field type. For example, if you select an integer field, such as the **Priority** field, the data is expressed as a number. If you select a duration field, such as **Business duration** on the Incident table, the aggregated data is expressed in days, hours, and minutes. If function fields were created in Report Designer for the table, they are available in the dropdown list. For more information, see [Report on function fields](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/now-intelligence/function-fields-reporting.md).
Format values Opens the formatting values dialog. See the Formatting properties table.
Additional settings for Table data sources
Show metric label \[showMetricLabel\] Option to show the metric label. In donut charts, the value is not shown if it can't fit the donut.
Show score update time \[showScoreUpdateTime\] Option to display the time of the last update.
Use relative score time \[useRelativeScoreTime\] Option to display the time of the last update relative to the current time. Available when **Show score update time** is on.
Show 0 when no data is available \[showZero\] When toggled on, shows empty \(NULL\) values as zero \(0\). True by default. When true, you can't set a custom message when there is no data.
Data update
Follow filters \[followFilters\] Follow filters set for a page. When enabled, the visualization displays on a workspace with the filters set by the page. Toggle off to disable a visualization from accepting any filter input.
Show filter icon \[showFilterIcon\] Option to show the filter icon and the number of filters impacting the visualization. If a filter is not selected to apply to a visualization, the icon does not show. Toggle off to hide the filter icon and number of filters applied.
Enable drilldown \[enableDrilldown\] Option to redirect a user to underlying information when they click a value or section. Destination depends on how event handler is configured or how Chart Interactions are configured on the Visualization Designer or inline dashboard editor. Turn off to prevent redirection.
Refresh after being away for X min. \[backgroundRefreshInterval\] Triggered when you navigate away from the dashboard that contains the data visualization to another page in the same workspace, includingPlatform Analytics experience. Sets how many minutes you will be on another page before the visualization automatically refreshes when you navigate back.Do not confuse this property with the **Scheduled repetition** setting on inline dashboards. This latter property refreshes the entire dashboard, and applies only while that dashboard is open.
Refresh requested \[refreshRequest\] A string that can be passed down to trigger a data refresh. Refresh will be triggered only if the new value of this property is different than the previous one.
Real time update \[enableRealTimeUpdate\] Option to update score in real time. If you enable both real-time update and data caching, real-time update overrides data caching.**Note:** - When a condition is dot-walked to another table, high traffic on the table suspends real-time data updates. - For tables, real-time updating supports only COUNT data aggregations. - Real-time updating is not supported on single score, dial, and gauge visualizations based on remote tables or Workflow Data Fabric tables.
Use data cache \[useDataCache\] If activated, user queries are cached. This cached data is used on page refreshes instead of the database being queried. The load time for the data visualization is thereby shortened.The user can get current data on demand by using the manually refreshing the data visualization with the **Refresh** button. Turning on **Real time update**, if that is available for this data visualization, overrides the use of data caching. Setting a value for **Refresh after being away for X min** or **Refresh requested** also disables data caching. Default: false
Show cache time \[showCacheTime\] When true, shows an icon that indicates that returned data are from the cache. On hover, the user sees how old the data is. Applies only when useDataCache is true.Default: true \(only when useCacheData is true\)
Cache expiration time \(h\) \[cacheExpirationTime\] Number denoting the lifespan of cached data in hours. When the lifespan is exceeded, a page refresh results in the cached data being updated through a database query.A value for **Refresh after being away for X min** or **Refresh requested** can result in the data cache being updated before its expiration time. Default: 0
No data messageThis section is available only when **Show zero** is false. Otherwise, the no data message is 0.
Set custom message when no data \[enableCustomEmptyState\] Option to configure a custom message that displays when no data is returned.
Illustration \[emptyStateIllustration\] An illustration to include in the message.
Heading \[emptyStateHeading\] Header text of the message that describes why no data was returned.
Content \[emptyStateContent\] Secondary text of the message that provides additional detail.
Alignment \[emptyStateAlignment\] The alignment of the illustration and text in the message.
### Indicator data properties These properties configure how indicator data is presented on Single Score visualizations.
Field \[property\] Description
Metric for Indicator data sources
Label \[label\] Label of the metric. By default it is the same as the name of the data source.**Note:** If you have multiple metrics on the same data source, consider giving them custom labels. If you are defining group-by fields or breakdowns, this is particularly important. Chart labels in this case show both the metric label and the group-by value, so the metrics need different labels.
Time aggregation \[aggregateIndicator\] Time aggregation to apply to the metric, such as 7-day running SUM or By-month AVG. Default is the same as the indicator period. For more information, see [Applying time series aggregations](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/now-intelligence/applying-time-series-aggregations.md).
Format values Opens the formatting values dialog. See the Formatting properties table.
Date range options
Apply date range \[applyDateRange\] When turned on, this option allows date filters on the dashboard or UIB page to apply to this visualization. The date range can also be configured in the visualization, but date filters override visualization settings.
Show data for selected period as \[scoreType\] Available when **Apply date range** is selected.The indicator aggregation logic for how scores from the selected period are shown, such as Latest score, Sum, or Average.
Set absolute period \[showAbsolutePeriod\] Option to set absolute start and end date.Available when **Apply date range** is selected.
Period start \[startTime\] Start date for the absolute period.This property applies only when **Set absolute period** is true.
Period end \[endTime\] End date for the absolute period.This property applies only when **Set absolute period** is true. Select **Use current date for period end** to automatically update the end date to the current date. \(Not available if the start date is in the future.\)
Number of periods \[numberOfPeriods\] Number of date periods to display. This property applies only when **Set absolute period** is true.
Period \[period\] Time interval for each date period. - Days `D` - Weeks `W` - Months `M` - Quarters `Q` - Years `Y` The available periods depend on the time aggregation. A period can't be shorter than the time aggregation unit. If you change the time aggregation to a longer unit than the selected period, the period changes to the shortest period that is still available. This property applies only when **Set absolute period** is false.
Additional settings for Indicator data sources
Show metric label \[showMetricLabel\] Option to show the metric label. In donut charts, the value is not shown if it can't fit the donut.
Show change \[showChange\] Option to show the change compared to the previous score or period.
Show change % \[showChangePercentage\] Option to show the percent change compared to the previous score or period. This property applies only when **Show change** is turned on.
Show change from \[showChangeFrom\] If **Apply date range** and **Show change** are turned on, sets whether to show the change from the previous score, the aggregate of the previous period, or the score at the start of the previous period.
Show target \[showTarget\] Option to display the target value.Not available when **Compare period over period** is turned on.
Show gap % \[showGapPercentage\] Option to show the percentage between the current value and the target value. This property applies only when **Show change** is turned on.
Show sparkline \[showSparkline\] Option to show a line graph representing the change over time.
Show score date \[showScoreDate\] Option to show the date when the score was collected.This property applies only when **Real time update** is false.
Show score update time \[showScoreUpdateTime\] Option to display the time of the last update.This property applies only when **Real time update** is true.
Use relative score time \[useRelativeScoreTime\] Option to display the time of the last update relative to the current time. Available when **Show score update time** is on.
Data update
Follow filters \[followFilters\] Follow filters set for a page. When enabled, the visualization displays on a workspace with the filters set by the page. Toggle off to disable a visualization from accepting any filter input.
Show filter icon \[showFilterIcon\] Option to show the filter icon and the number of filters impacting the visualization. If a filter is not selected to apply to a visualization, the icon does not show. Toggle off to hide the filter icon and number of filters applied.
Enable drilldown \[enableDrilldown\] Option to redirect a user to underlying information when they click a value or section. Destination depends on how event handler is configured or how Chart Interactions are configured on the Visualization Designer or inline dashboard editor. Turn off to prevent redirection.
Refresh after being away for X min. \[backgroundRefreshInterval\] Triggered when you navigate away from the dashboard that contains the data visualization to another page in the same workspace, includingPlatform Analytics experience. Sets how many minutes you will be on another page before the visualization automatically refreshes when you navigate back.Do not confuse this property with the **Scheduled repetition** setting on inline dashboards. This latter property refreshes the entire dashboard, and applies only while that dashboard is open.
Refresh requested \[refreshRequest\] A string that can be passed down to trigger a data refresh. Refresh will be triggered only if the new value of this property is different than the previous one.
Real time update \[enableRealTimeUpdate\] Option to update score in real time.**Note:** - This setting is available for automated, non-scripted indicators with a non-scripted breakdown mapping. - Real-time score updating does not support MIN, MAX, or COUNT DISTINCT aggregations.
Use data cache \[useDataCache\] If activated, user queries are cached. This cached data is used on page refreshes instead of the database being queried. The load time for the data visualization is thereby shortened.The user can get current data on demand by using the manually refreshing the data visualization with the **Refresh** button. Turning on **Real time update**, if that is available for this data visualization, overrides the use of data caching. Setting a value for **Refresh after being away for X min** or **Refresh requested** also disables data caching. Default: false
Show cache time \[showCacheTime\] When true, shows an icon that indicates that returned data are from the cache. On hover, the user sees how old the data is. Applies only when useDataCache is true.Default: true \(only when useCacheData is true\)
Cache expiration time \(h\) \[cacheExpirationTime\] Number denoting the lifespan of cached data in hours. When the lifespan is exceeded, a page refresh results in the cached data being updated through a database query.A value for **Refresh after being away for X min** or **Refresh requested** can result in the data cache being updated before its expiration time. Default: 0
No data message
Set custom message when no data \[enableCustomEmptyState\] Option to configure a custom message that displays when no data is returned.
Illustration \[emptyStateIllustration\] An illustration to include in the message.
Heading \[emptyStateHeading\] Header text of the message that describes why no data was returned.
Content \[emptyStateContent\] Secondary text of the message that provides additional detail.
Alignment \[emptyStateAlignment\] The alignment of the illustration and text in the message.
### User Analytics Experience data properties These properties configure how Usage Insights data is presented on Single Score visualizations.
Field \[property\] Description
Metric properties for Usage Insights data sources
Label \[label\] Label of the metric. By default it is the same as the name of the data source.**Note:** If you have multiple metrics on the same data source, consider giving them custom labels. If you are defining group-by fields or breakdowns, this is particularly important. Chart labels in this case show both the metric label and the group-by value, so the metrics need different labels.
Format values Opens the formatting values dialog. See the Formatting properties table.
Date range options for Usage Insights data sources
Show data for selected period as \[scoreType\] Available when **Apply date range** is selected.The indicator aggregation logic for how scores from the selected period are shown, such as Latest score, Sum, or Average.
Show maximum range \[showMaximumRange\] Option to show the maximum range of available dates.
Set absolute period \[showAbsolutePeriod\] Option to set absolute start and end date.Available when **Apply date range** is selected.
Period start \[startTime\] Start date for the absolute period.This property applies only when **Set absolute period** is true.
Period end \[endTime\] End date for the absolute period.This property applies only when **Set absolute period** is true. Select **Use current date for period end** to automatically update the end date to the current date. \(Not available if the start date is in the future.\)
Number of periods \[numberOfPeriods\] Number of date periods to display. This property applies only when **Set absolute period** is true.
Period \[period\] Time interval for each date period. - Days `D` - Weeks `W` - Months `M` - Quarters `Q` - Years `Y` The available periods depend on the time aggregation. A period can't be shorter than the time aggregation unit. If you change the time aggregation to a longer unit than the selected period, the period changes to the shortest period that is still available. This property applies only when **Set absolute period** is false.
Additional settings—User Experience Analytics data sources
Show metric label \[showMetricLabel\] Option to show the metric label. In donut charts, the value is not shown if it can't fit the donut.
Show 0 when no data is available \[showZero\] When toggled on, shows empty \(NULL\) values as zero \(0\). True by default. When true, you can't set a custom message when there is no data.
Data update options—Usage Insights data sources
Follow filters \[followFilters\] Follow filters set for a page. When enabled, the visualization displays on a workspace with the filters set by the page. Toggle off to disable a visualization from accepting any filter input.
Show filter icon \[showFilterIcon\] Option to show the filter icon and the number of filters impacting the visualization. If a filter is not selected to apply to a visualization, the icon does not show. Toggle off to hide the filter icon and number of filters applied.
Enable drilldown \[enableDrilldown\] Option to redirect a user to underlying information when they click a value or section. Destination depends on how event handler is configured or how Chart Interactions are configured on the Visualization Designer or inline dashboard editor. Turn off to prevent redirection.
Refresh after being away for X min. \[backgroundRefreshInterval\] Triggered when you navigate away from the dashboard that contains the data visualization to another page in the same workspace, includingPlatform Analytics experience. Sets how many minutes you will be on another page before the visualization automatically refreshes when you navigate back.Do not confuse this property with the **Scheduled repetition** setting on inline dashboards. This latter property refreshes the entire dashboard, and applies only while that dashboard is open.
Refresh requested \[refreshRequest\] A string that can be passed down to trigger a data refresh. Refresh will be triggered only if the new value of this property is different than the previous one.
No data messageThis section is available only when **Show zero** is false. Otherwise, the no data message is 0.
Set custom message when no data \[enableCustomEmptyState\] Option to configure a custom message that displays when no data is returned.
Illustration \[emptyStateIllustration\] An illustration to include in the message.
Heading \[emptyStateHeading\] Header text of the message that describes why no data was returned.
Content \[emptyStateContent\] Secondary text of the message that provides additional detail.
Alignment \[emptyStateAlignment\] The alignment of the illustration and text in the message.
### Health Log Analytics data properties These properties configure how Health Log Analytics data is presented on single score visualizations.
Field \[property\] Description
Metric for Indicator data sources
Label \[label\] Label of the metric. By default it is the same as the name of the data source.**Note:** If you have multiple metrics on the same data source, consider giving them custom labels. If you are defining group-by fields or breakdowns, this is particularly important. Chart labels in this case show both the metric label and the group-by value, so the metrics need different labels.
Format values Opens the formatting values dialog. See the Formatting properties table.
Date range
Set absolute period \[showAbsolutePeriod\] Option to set absolute start and end date.Available when **Apply date range** is selected.
Period start \[startTime\] Start date for the absolute period.This property applies only when **Set absolute period** is true.
Period end \[endTime\] End date for the absolute period.This property applies only when **Set absolute period** is true. Select **Use current date for period end** to automatically update the end date to the current date. \(Not available if the start date is in the future.\)
Number of periods \[numberOfPeriods\] Number of date periods to display. This property applies only when **Set absolute period** is true.
Period \[period\] Time interval for each date period. - Days `D` - Weeks `W` - Months `M` - Quarters `Q` - Years `Y` The available periods depend on the time aggregation. A period can't be shorter than the time aggregation unit. If you change the time aggregation to a longer unit than the selected period, the period changes to the shortest period that is still available. This property applies only when **Set absolute period** is false.
Data update
Follow filters \[followFilters\] Follow filters set for a page. When enabled, the visualization displays on a workspace with the filters set by the page. Toggle off to disable a visualization from accepting any filter input.
Show filter icon \[showFilterIcon\] Option to show the filter icon and the number of filters impacting the visualization. If a filter is not selected to apply to a visualization, the icon does not show. Toggle off to hide the filter icon and number of filters applied.
Enable drilldown\[enableDrilldown\] Enables the viewer to open the Health Log Analytics log viewer by interacting with the chart, such as by clicking on a value.
Refresh after being away for X min. \[backgroundRefreshInterval\] Triggered when you navigate away from the dashboard that contains the data visualization to another page in the same workspace, includingPlatform Analytics experience. Sets how many minutes you will be on another page before the visualization automatically refreshes when you navigate back.Do not confuse this property with the **Scheduled repetition** setting on inline dashboards. This latter property refreshes the entire dashboard, and applies only while that dashboard is open.
Refresh requested \[refreshRequest\] A string that can be passed down to trigger a data refresh. Refresh will be triggered only if the new value of this property is different than the previous one.
### Formatting properties These properties apply to Single Score visualizations for all data sources. Access them through the **Format values** link under Metric.
Field \[property\] Description
Use custom formatting \[customFormat\] Option to use custom formatting on the component.
Decimal precision \[decimalPrecision\] Number of decimal places to show in the metric.**Note:** Only available when **Use custom formatting** is true
Rounding \[rounding\] Type of rounding to use to reach the number of decimals in the **Decimal precision** field. Options include:- Up `UP` - Down `DOWN` - Ceiling `CEILING` - Floor `FLOOR` - Half up `HALF_UP` - Half down `HALF_DOWN` - Half even `HALF_EVEN` **Note:** Only available when **Use custom formatting** is true.
Use the thousands group separator \[thousandSeparatorEnabled\] Option to use a comma to separate groups of thousands.**Note:** Only available when **Use custom formatting** is true.
Enable abbreviation \[abbreviationEnabled\] Option to use an alphabetical abbreviation. For example, M to represent million. **Note:** Only available when **Use custom formatting** is true.
Example Example of the final value to show in the component. **Note:** Only available when **Use custom formatting** is true
Show original number in tooltips \[numberInTooltipsEnabled\] Option to include a tooltip to show the unformatted number when pointed to. **Note:** Only available when **Use custom formatting** and **Enable abbreviation** are true.
## Single Score visualization component events Select event handlers to configure the actions \(events\) provided with the Single score component. The Events tab shows the events used by the Single score component. To view the available events, select **+ Add event mapping**. Select the event in the list to add one or more event handlers. ### Event handlers Event handlers work with data resources to link the Single score actions to the data you want to display to your users. Select the event in the list to add one or more event handlers. For instructions on adding event handlers to an event, see [Configure an event handler](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/event-handler.md). ### Event descriptions
Event Description
Visualization Clicked Dispatched when the visualization is clicked.Payload: - [ItemSelectedPayload](https://developer.servicenow.com/dev.do#!/reference/now-experience/tokyo/shared-components/now-vis-score-wrapper/uib-config%23typedefs-ClickEventPayload) – Payload of the action dispatched when the visualization is clicked. Payload type: `{title: string, type: string, params: PayloadParams, data: PayloadData}` - PayloadBreakdown - Breakdowns represented as a json object. Payload type: `{sysId: string, elements: Array.}` - PayloadParams – Parameters of the clicked visualization. Payload type: `{table: string, query: string, indicatorSysid: string, breakdowns: Array., domain: string, aggregate: string, scoreDate: string}` - PayloadData - Payload from the data point \(timestamp, element name, value, color, cssColor\) is dispatched when clicking a visualization. For example, clicking on a data point in a timeseries chart passes the timestamp and value in the payload. Payload type: `{change: string, elements: Array., value: string, color: string, cssColor: string}`