--- title: Bubble visualization component setup description: The bubble chart is a visualization type within the Data visualization component. Bubble charts show table data along an x-y graph representing two fields, with colors for an optional third field. The size of the bubbles reflects the metric.Select the data source, the fields of the x and y axes, and the field for the bubble size in these properties. Also configure data update and chart appearance.Select event handlers to configure the actions \(events\) provided with the Bubble visualization. locale: en-US canonical_url: https://www.servicenow.com/docs/r/application-development/ui-builder/bubble-component-uib-setup.html release: brazil product: UI Builder classification: ui-builder topic_type: task last_updated: "2026-09-10" reading_time_minutes: 12 breadcrumb: [UIB Setup Information, UI Builder, Builder library, Developing your application, Classic app development, Building applications] --- # Bubble visualization component setup The bubble chart is a visualization type within the Data visualization component. Bubble charts show table data along an x-y graph representing two fields, with colors for an optional third field. The size of the bubbles reflects the metric. ## Before you begin This task assumes you have placed the Data visualization on the stage and are ready to configure the Bubble visualization properties and events. For instructions on accessing and using the UI Builder toolbox, see [Customize UI pages using components](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/work-components.md). Role required: admin or ui\_builder\_admin. ## Procedure 1. Define a label for your Bubble 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 Bubble 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 or Vertical Bar **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 or indicator 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 visualization type to see configurations options available based on the selected data source. **Parent Topic:**[UIB Setup Information](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/uib-setup-information.md) ## Bubble visualization component properties Select the data source, the fields of the x and y axes, and the field for the bubble size in these properties. Also configure data update and chart appearance. To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type. - **Data binding**: Creates dynamic property values from multiple sources. Sources include state variables \(@state\), URL variables \(@context\), or data resource payloads \(@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\] This data visualization supports only Table data sources. Tables contain 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).
**Note:** Bubble visualizations support multiple data sources, but all must be of the same type, such as table.
Field \[property\] Description
Metric \(bubble size\)
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 Duration Formatting Options table.
Dimensions \(values in the groupBy\[dimension.id\] property\)
Y axis Numeric table field with values on the bubble chart's y-axis.
X axis Numeric table field with values on the bubble chart's x-axis.
Group by Any table field other than the x- and y-axes. Different groups are distinguished by bubble color.
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
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.
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.
Field \[property\] Description
Unit format \[unitFormat\] Option to show units in short \(single letter\) or long \(written out\) form
Maximum duration unit \[maxDurationUnit\] Largest time unit in which duration is expressed.
Minimum duration unit \[minDurationUnit\] Smallest time unit in which duration is expressed. For example, if you select Hour, the minutes and seconds do not show and the hours are rounded off.
Hide seconds when duration is greater than one minute \[hideSeconds\] Option to hide seconds after the duration exceeds one minute
Show original value in tooltips \[showOriginalValueInTooltip\] Option to include a tooltip to show the unformatted number on point to.
Field \[property\] Description
**Display settings**
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.
**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
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. - 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.
Palette \[palette\] Color palette to apply to the component. **Note:** Only available when **Set color type** is **Color palette**.
## Bubble visualization component events Select event handlers to configure the actions \(events\) provided with the Bubble visualization. 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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/event-handler.md).
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-bar-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: `{elements: Array., groupBy: Array., value: string, value: string, color: string, cssColor: string}`