Bar visualization component setup

task brazil Updated Sep 10, 2026 40 min read bar-component-setup.md
Raw file servicenow.com

Present data as vertical or horizontal bars or Pareto charts. In general, use horizontal bars to graph nominal data, use vertical bars to graph ordinal data, and use Pareto bars to show the most important dimensions of complex data. Bars are a type of Data visualization component.

Before you begin

This task assumes you have placed the Data visualization on the stage and are ready to configure the Bar visualization properties and events. For instructions on accessing and using the UI Builder toolbox, see Customize UI pages using components.

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.

    [Omitted image "data-vis-content-tree.png"] Alt text: Data visualization component with label displayed in the content tree

  2. Select the Bar 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 configuration options appear in the panel on the right.
  3. Select the Horizontal, Vertical Bar, or Pareto Bar Data Visualization Type.

    The available data sources and properties change depending on the selected chart type.

    Note: Pareto bar visualizations only accept one data source, one metric and one groupby. You cannot select Sort bysince Pareto bar visualizations default by descending.

  4. Click Add data source to select a data source to base a visualization on.

  5. Add filters to the data as needed.

  6. Click Add this source to add your selected data source.

  7. Enter static input in the input fields by typing in the content or selecting it from a drop-down list.

    See the sections on each Data visualization type to see configurations options available based on the selected data source.

Parent Topic:UIB Setup Information

Bar visualization component properties

Configure the data and presentation of bar visualizations with these properties.

To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type.

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) and Use a local data instance with a data visualization.

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. 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.

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.

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.

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.

  • 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.

Data visualizations for Health Log Analytics can be created or edited only in the UI Builder.

**Note:** Bar visualizations support multiple data sources, but they must all be the same type, such as table.

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

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.

Field [property]

Description

Display settings

Height [height]

The height of the chart.

Show only one data point in tooltip [showClosestSeriesOnHover]

When turned on, the tooltip shows only the data point being hovered over. When turned off, the tooltip shows all data points.Default: Off, except when zoom is 400%, which automatically turns it on.

Show data table [showDataTable]

Shows a table with chart and graph data for easier screen reader access. Data includes the percentage of the total for each value, when appropriate.

Chart variation

Chart variation [chartVariation]

Style of bars. Options include:- Stacked stacked: Group by fields are stacked on top of each other.

  • Side-by-side grouped: Group by fields are side-by-side.
  • Normalized normalized: Group by fields are stacked and stretched to fill the chart.

This property applies only when more than one Group by is applied.

Y axis

Show grid [bar: showYGrid] [time series: yAxisShowGrid]

Adds grid lines to the chart.

Hide y axis [yAxisHidden]

Option to hide the vertical axis.If you have the latest Data Visualizations application from the ServiceNow Store, you can hide the y-axis on any bar chart. Otherwise, you can't hide it on horizontal bar charts.

Axis title [yAxisTitle]

Title to display on the vertical axis of the visualization.

Axis range - from [yAxisFrom]

Starting point for the range of values for the vertical axis of the visualization.This property applies only to vertical bar charts.

Axis range - to [yAxisTo]

End point for the range of values for the vertical axis of the visualization.This property applies only to vertical bar charts.

Axis style [yAxisStyle]

Style of the Y axis. - Clean clean: Adds a straight line to the Y axis.

  • No tick lines noTicks: Option to remove all marks from the Y axis.
  • Standard default: Adds a line and tick marks to the Y axis.

Wrap labels [yAxisWrapLabels]

Wraps long labels in the vertical axis. This property applies to the Y axis only to horizontal and Pareto bar charts.

Max label size, px [yAxisMaxLabelSize]

Maximum label size for the vertical axis, in pixels. This property applies to the Y axis only to horizontal and Pareto bar charts.

Truncation type [yAxisTruncationType]

Determines where to truncate long labels. Options include:- Start start

  • Middle middle
  • End end

This property applies only to the Y axis and only on horizontal bar charts.

X axis

X axis title [xAxisTitle]

Title to display on the horizontal axis of the visualization.

Hide axis [xAxisHidden]

Option to hide the horizontal axis. If you have the latest Data Visualizations application from the ServiceNow Store, you can hide the x-axis on horizontal or vertical bar charts. Otherwise, you can't hide it on horizontal bar charts.

Axis range - from [xAxisFrom]

Starting point for the range of values for the horizontal axis of the visualization.This property applies only to horizontal bar charts.

Axis range - to [xAxisTo]

End point for the range of values for the horizontal axis of the visualization.This property applies only to horizontal bar charts.

Axis position [xAxisPosition]

Where to position the horizontal axis. Options include:- Top top

  • Bottom bottom

This property applies only to horizontal bar charts.

Axis style [xAxisStyle]

Style of the X axis. Options include:- Clean clean: Adds a straight line to the X axis.

  • No tick lines noTicks: Option to remove all marks from the X axis.
  • Standard default: Adds a line and tick marks to the X axis.

This property applies only when Show grid is true.

Wrap labels [xAxisWrapLabels]

Wraps long labels in the horizontal axis.This property applies only to vertical and Pareto bar charts.

Max label size, px [xAxisMaxLabelSize]

Maximum label size for the horizontal axis, in pixels.This property applies only to vertical and Pareto bar charts.

Truncation type [xAxisTruncationType]

Determines where to truncate long labels. Options include:- Start start

  • Middle middle
  • End end

Legend

Show legend [showRegister]

Option to display the legend. Activated automatically at 400% zoom.

Show legend value [showRegisterValue]

Option to display the value corresponding to the area of the chart you hover on. The value displays as a tooltip and in the chart legend.

Legend position [registerPosition]

Legend location relative to the chart: Above, Below, Right, or Left

Data label

Show data labels [showDataLabels]

Option to display the score for each data point.

Data label position [dataLabelPosition]

Location of data labels: at the top, middle, or bottom of the bars.Note: Only available when Show data labels is true.

Show overlapping labels [showOverlappingLabels]

Option to display values that overlap.Note: Only available when Show data labels is true.

Colors

Set color type [type]For Pareto bar charts, only Default and Single color are available.

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.

  • Color palette palette: List of color palettes to select from predefined system palettes in the Chart Color Scheme [pa_chart_color_schemes] table. For grouped or stacked data, the colors apply in order from highest value to lowest. For multiple data sources, palette colors apply in the order of data sources. For example, the first color of a palette applies to the first data source, and the second palette color applies to the second source. All visualizations that use the same color palette show the same colors, regardless of what data they display.
  • 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.

  • Fixed element color chartColor: Use a specific color from the Chart Colors table [sys_report_chart_color] for each element. All data visualizations that use fixed element colors show the same element, such as critical incidents in the Global scope, in the same color. This option is available if a maximum of one data source or metric is added, and a Group by is defined.

Palette [palette]

Color palette to apply to the component. Note: Only available when Set color type is Color palette.

Color [color]

Single color to apply to the component. Note: Only available when Set color type is Single color.

### Table data properties

The following properties apply to bar data visualizations that show table data.

Field [property]

Description

MetricYou can add multiple metrics.

If you have multiple metrics, you can set dashboard filters to apply only to specific metrics. For more information, see Options for time series data visualizations with multiple metrics.

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.

Format values

Opens the formatting values dialog. See the Formatting Properties table.

Group by

Field for <table> [groupByField]

The field to group by. You can group by any field in the table including list fields.For example, in a visualization of incident data grouped by Assignment group, all incidents that belong to Software, Service Desk, and Network are placed in separate groups. If the table contains variables or question fields, you have the option to group by one of them at the end of the list of fields.

Note:

  • It is not possible to group or stack data by the Tags field, or by certain field types, such as MEDIUMTEXT.
  • If there are multiple metrics, the metric label is appended to the beginning of the group-by field values in the chart labels.
  • Fields with continuous values, such as date or integer, are automatically grouped according to any report ranges defined for the data. For more information, see Report ranges.

Max number of groups [maxNumberOfGroups]

Select the maximum number of groups to display. Groups in excess of this number, determined by sorting, are aggregated into the Other group. You can show that aggregate with the Show others option.By default, you can't show more than 50 groups. If you have the admin role, you can change this limit in the par_viz.table_data.max_groups system property.

Show others [showOthers]

If Max number of groups is set and this option is turned on, an aggregate of the groups beyond the maximum number is displayed as the Other group.The Other element is added automatically when the number of elements exceeds the limit in the par_viz.table_data.max_groups system property.

Hide elements with values of 0 [hideZeroValues]

When toggled on, elements with a value of NULL or 0, such as rows or data points, aren't displayed. This control is not available when the metric is COUNT.

Add alternative group by [additionalGroupByConfig]

A JSON array of name/label pairs of items to group by. Item type depends on data source. In runtime, the viewer of the data visualization has the ability to select which of these objects to group by or stack by. The viewer toggles the visibility of the group by item selector in the visualization's More actions menu.Important:

  • Alternative group-bys support only up to three metrics on one visualization.
  • Alternative group-by does not support data binding on the data source

Selector visible by default [showAdditionalGroupBySelector]

When turned on, the viewer sees the alternative group by item selector by default. In any case, the viewer toggles the selector visibility in the More actions menu. This property only takes effect if at least one alternative group by item has been added.

Default: false

Sorting

Sort by [sortBy]

Sorting options of the main and alternative groups set in Group by. Options include:- Name: Sorts the values alphabetically by field or element name.

  • Value: Sorts the values numerically or by count.
  • Element order: Sorts the groups according to the value of the Sequence field. Available when grouping by records on the Choice [sys_choice] table, either directly or through a breakdown.
  • Group bucket: Sorts the elements by bucket group, when applicable. Only available for indicator data sources and when the breakdown used for the Group by is based on a bucket group.
  • Report range: Sorts the table field values by range. Only available for table data sources and when the table field used for the Group by has a report range associated with it.

Note:

  • The choices of what to sort by are based on the main, default Group by, if one is defined. This sorting applies to any alternative group-bys if possible. If the sorting criterion selected for the main group-by can't apply to an alternative group-by, sorting defaults to Value. For example, sorting by Element order when the alternative group-by is not on the Choice table.
  • If no main Group by has been set, but alternative group-bys are defined, you can sort only by Name or Value.
  • Sorting is not available for Pareto bar visualizations. Pareto charts are always sorted by value in descending order.

Sort by order [sortByOrder]

The direction of the group-by sorting. Options include:- Ascending asc

  • Descending desc

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.

Follow filter per metric [filterPerMetric]

If the visualization shows multiple metrics, toggle filter following on and off for each metric. Default: All metrics follow filters if Follow filters is on. For more information, see Following filters per metric.

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.

Drill down label [drilldownLabel]

Text visible at the tooltip to help user understand what will happen on click.

Show selected data point [enableClickAndStay]

When enabled, the data point that has been selected is shown visually. Enables configuring an event handler associated with the data point such as acting as filter.

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.

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.

### Indicator data properties

The following properties apply to Bar data visualizations that show indicator data.

Field [property]

Description

MetricYou can add multiple metrics.

If you have multiple metrics, you can set dashboard filters to apply only to specific metrics. For more information, see Options for time series data visualizations with multiple metrics.

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.

Format values

Opens the formatting values dialog. See the Formatting Properties table.

Group by

Breakdown [breakdown]

Group indicator scores by a breakdown.Important:

  • Scripted breakdowns are not supported in dashboard filters.
  • If there are multiple metrics, the metric label is appended to the beginning of the breakdown element values in the chart labels.
  • Only two levels of breakdown are supported in total, including data visualization and dashboard filters. This limitation does not apply if the indicator has Data snapshots enabled. For more information, see Data snapshots and multiple breakdowns.

Max number of groups [maxNumberOfGroups]

Select the maximum number of groups to display. Groups in excess of this number, determined by sorting, are aggregated into the Other group. You can show that aggregate with the Show others option.By default, you can't show more than 50 groups. If you have the admin role, you can change this limit in the par_viz.table_data.max_groups system property.

Add alternative group by [additionalGroupByConfig]

A JSON array of name/label pairs of items to group by. Item type depends on data source. In runtime, the viewer of the data visualization has the ability to select which of these objects to group by or stack by. The viewer toggles the visibility of the group by item selector in the visualization's More actions menu.Important:

  • Alternative group-bys support only up to three metrics on one visualization.
  • Alternative group-by does not support data binding on the data source

Selector visible by default [showAdditionalGroupBySelector]

When turned on, the viewer sees the alternative group by item selector by default. In any case, the viewer toggles the selector visibility in the More actions menu. This property only takes effect if at least one alternative group by item has been added.

Default: false

Sorting

Sort by [sortBy]

Sorting options of the main and alternative groups set in Group by. Options include:- Name: Sorts the values alphabetically by field or element name.

  • Value: Sorts the values numerically or by count.
  • Element order: Sorts the groups according to the value of the Sequence field. Available when grouping by records on the Choice [sys_choice] table, either directly or through a breakdown.
  • Group bucket: Sorts the elements by bucket group, when applicable. Only available for indicator data sources and when the breakdown used for the Group by is based on a bucket group.
  • Report range: Sorts the table field values by range. Only available for table data sources and when the table field used for the Group by has a report range associated with it.

Note:

  • The choices of what to sort by are based on the main, default Group by, if one is defined. This sorting applies to any alternative group-bys if possible. If the sorting criterion selected for the main group-by can't apply to an alternative group-by, sorting defaults to Value. For example, sorting by Element order when the alternative group-by is not on the Choice table.
  • If no main Group by has been set, but alternative group-bys are defined, you can sort only by Name or Value.
  • Sorting is not available for Pareto bar visualizations. Pareto charts are always sorted by value in descending order.

Sort by order [sortByOrder]

The direction of the group-by sorting. Options include:- Ascending asc

  • Descending desc

Date range

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.

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.

Follow filter per metric [filterPerMetric]

If the visualization shows multiple metrics, toggle filter following on and off for each metric. Default: All metrics follow filters if Follow filters is on. For more information, see Following filters per metric.

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.

Drill down label [drilldownLabel]

Text visible at the tooltip to help user understand what will happen on click.

Show selected data point [enableClickAndStay]

When enabled, the data point that has been selected is shown visually. Enables configuring an event handler associated with the data point such as acting as filter.

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.

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 Experience Analytics data properties

The following properties apply to Bar data visualizations that show Usage Insights data.

Important: Bar visualizations are only suitable for Events data, not Users or Sessions. Only Events have a value to group by.

Field [property]

Description

MetricYou can add multiple metrics.

If you have multiple metrics, you can set dashboard filters to apply only to specific metrics. For more information, see Options for time series data visualizations with multiple metrics.

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.

Group by - Events only

Event property [eventPropertyValue]

List of properties to choose from for Usage Insights Event sources that have properties.

This property applies only to Events metrics, in which case it is mandatory.

Add alternative group by [additionalGroupByConfig]

A JSON array of name/label pairs of items to group by. Item type depends on data source. In runtime, the viewer of the data visualization has the ability to select which of these objects to group by or stack by. The viewer toggles the visibility of the group by item selector in the visualization's More actions menu.Important:

  • Alternative group-bys support only up to three metrics on one visualization.
  • Alternative group-by does not support data binding on the data source

Selector visible by default [showAdditionalGroupBySelector]

When turned on, the viewer sees the alternative group by item selector by default. In any case, the viewer toggles the selector visibility in the More actions menu. This property only takes effect if at least one alternative group by item has been added.

Default: false

Sorting

Sort by [sortBy]

Sorting options of the main and alternative groups set in Group by. Options include:- Name: Sorts the values alphabetically by field or element name.

  • Value: Sorts the values numerically or by count.
  • Element order: Sorts the groups according to the value of the Sequence field. Available when grouping by records on the Choice [sys_choice] table, either directly or through a breakdown.
  • Group bucket: Sorts the elements by bucket group, when applicable. Only available for indicator data sources and when the breakdown used for the Group by is based on a bucket group.
  • Report range: Sorts the table field values by range. Only available for table data sources and when the table field used for the Group by has a report range associated with it.

Note:

  • The choices of what to sort by are based on the main, default Group by, if one is defined. This sorting applies to any alternative group-bys if possible. If the sorting criterion selected for the main group-by can't apply to an alternative group-by, sorting defaults to Value. For example, sorting by Element order when the alternative group-by is not on the Choice table.
  • If no main Group by has been set, but alternative group-bys are defined, you can sort only by Name or Value.
  • Sorting is not available for Pareto bar visualizations. Pareto charts are always sorted by value in descending order.

Sort by order [sortByOrder]

The direction of the group-by sorting. Options include:- Ascending asc

  • Descending desc

Date range

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.

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.

Follow filter per metric [filterPerMetric]

If the visualization shows multiple metrics, toggle filter following on and off for each metric. Default: All metrics follow filters if Follow filters is on. For more information, see Following filters per metric.

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.

Drill down label [drilldownLabel]

Text visible at the tooltip to help user understand what will happen on click.

Show selected data point [enableClickAndStay]

When enabled, the data point that has been selected is shown visually. Enables configuring an event handler associated with the data point such as acting as filter.

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 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.

### Health Log Analytics data properties

These properties configure how Health Log Analytics data is presented on bar visualizations.

Field [property]

Description

MetricYou can add multiple metrics.

If you have multiple metrics, you can set dashboard filters to apply only to specific metrics. For more information, see Options for time series data visualizations with multiple metrics.

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.

Group by

Field for grouping

[groupByField]

A selection of Health Log Analytics fields you can group the data by.

Max number of groups [maxNumberOfGroups]

Select the maximum number of groups to display. Groups in excess of this number, determined by sorting, are aggregated into the Other group. You can show that aggregate with the Show others option.By default, you can't show more than 50 groups. If you have the admin role, you can change this limit in the par_viz.table_data.max_groups system property.

Sorting

Sort by [sortBy]

Sorting options of the main and alternative groups set in Group by. Options include:- Name: Sorts the values alphabetically by field or element name.

  • Value: Sorts the values numerically or by count.
  • Element order: Sorts the groups according to the value of the Sequence field. Available when grouping by records on the Choice [sys_choice] table, either directly or through a breakdown.
  • Group bucket: Sorts the elements by bucket group, when applicable. Only available for indicator data sources and when the breakdown used for the Group by is based on a bucket group.
  • Report range: Sorts the table field values by range. Only available for table data sources and when the table field used for the Group by has a report range associated with it.

Note:

  • The choices of what to sort by are based on the main, default Group by, if one is defined. This sorting applies to any alternative group-bys if possible. If the sorting criterion selected for the main group-by can't apply to an alternative group-by, sorting defaults to Value. For example, sorting by Element order when the alternative group-by is not on the Choice table.
  • If no main Group by has been set, but alternative group-bys are defined, you can sort only by Name or Value.
  • Sorting is not available for Pareto bar visualizations. Pareto charts are always sorted by value in descending order.

Sort by order [sortByOrder]

The direction of the group-by sorting. Options include:- Ascending asc

  • Descending desc

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.

Follow filter per metric [filterPerMetric]

If the visualization shows multiple metrics, toggle filter following on and off for each metric. Default: All metrics follow filters if Follow filters is on. For more information, see Following filters per metric.

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.

Drill down label [drilldownLabel]

Text visible at the tooltip to help user understand what will happen on click.

Show selected data point [enableClickAndStay]

When enabled, the data point that has been selected is shown visually. Enables configuring an event handler associated with the data point such as acting as filter.

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 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.

## Bar visualization component events

Select event handlers to configure the actions (events) provided with the Data visualization component.

Event handlers work with data resources to link the list actions to the data you want to display to your users. Expand the event in the list and add one or more event handlers. For information about event handlers, see event handlers.

Event

Description

Visualization Clicked

Dispatched when the visualization is clicked.Payload:

Payload type: {title: string, type: string, params: PayloadParams, data: PayloadData}

  • PayloadBreakdown: Breakdowns represented as a json object.

Payload type: {sysId: string, elements: Array.<string>}

  • PayloadParams: Parameters of the clicked visualization.

Payload type: {table: string, query: string, indicatorSysid: string, breakdowns: Array.<PayloadBreakdown>, 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: {elements: Array.<string>, groupBy: Array.<string>, value: string, value: string, color: string, cssColor: string}

  • Pareto.ClickEventPayload: {title: string, type: string, nativeEvent: object, params: Pareto.PayloadParams, data: Pareto.PayloadData}

  • Pareto.PayloadParams: Parameters of the clicked visualization.

Payload type: {dataSourceType: string, table: string, query: string, indicatorSysid: string, breakdowns:<Pareto.PayloadBreakdown>, domain: string, aggregate: string, scoreDate: string}

  • Pareto.PayloadData - Payload data of the clicked area. {value: string, groupBy: string, elements: string}

Pareto.PayloadBreakdown - Breakdowns represented as a json object.{sysId: string,elements: string}

Search documentation
Search document titles and file paths on the brazil branch