A bubble chart is a variation of the scatter plot that lets you graph three values together as a single data point, offering several ways to display data in your applications.
Like a scatter plot, a bubble chart uses x and y values to display points on a graph. Unlike a scatter plot, each point on a bubble chart can be a different size. The size of each point is based on a third value in your data. This third variable provides more context in cases where these variables interact.
For example, a bubble chart could display:
A country's unemployment rate on the x-axis.
GDP growth percentage on the y-axis.
Net GDP per capita is the size of each bubble.
Another use for a bubble chart is tracking sales for each agent in your department. You want to see if an agent makes more sales when they have more leads. You also want to see how much revenue comes from each of these circumstances. For that, you'll build a bubble chart.
You can set up the chart using the following keys from a data set:
Number of leads
Number of sales
Revenue
Configuration
Learn how to configure a bubble chart. Click on the tab that matches your Unqork platform:
Configure the Data Table Component
First, you'll configure a Data Table component with sample data that displays in your bubble chart.
In the Module Builder, drag and drop a Data Table component onto your canvas.
In the Property ID and Label Text fields, enter
dtSalesByAgent.In the data table, enter the following:
leads
sales
revenue
agentId
240
25
1000000
6635022
320
30
1500000
1953225
180
20
800000
3485878
500
35
900000
9728223
250
10
2000000
7782362
270
18
1700000
8155255
200
33
2300000
6687696
330
22
1200000
5169492
.png)
Click Save Component.
Configure the Hidden Component
Use a Hidden component to store the output from the Data Workflow component you’ll set up next.
Drag and drop a Hidden component onto your canvas, placing it below your
dtSalesByAgentData Table component.In the Property ID and Label Text fields, enter
salesForBubbleChart.Click Save Component.
Configure the Data Workflow Component
Now, you'll configure your Data Workflow component. Here, you'll use a Pick operator to select three keys from your data. Then, you'll convert each of those fields to x, y, and z values. Your x and y values represent data points on each axis. The z values determine the size of each point. Your data must be formatted this way to pass to a Chart component.
Drag and drop a Data Workflow component onto your canvas, placing it below your
dtSalesByAgentData Table component.In the Property ID and Canvas Label Text fields, enter
dwfScatterPlot.
Configure the Input Operator
Drag and drop an Input operator onto your Data Workflow canvas.
Configure the operator's Info window as follows:
Setting
Value
Category
Input
Component
dtSalesByAgent
Required
Yes
Source
Default
Configure the Pick Operator
This Pick operator retrieves the leads and sales columns from your data table.
Drag and drop a Pick operator onto your Data Workflow canvas.
Configure the operator's Info window as follows:
Setting
Value
Category
Pick
Label
Leads, Sales, and Revenue
Pick Keys
leads, sales, revenue
Connect the output port (right) of the
dtSalesByAgentInput operator to the input port (left) of theLeads, Sales, and RevenuePick operator.
Configure the First Console Operator
The first Console operator in this configuration displays the data retrieved by the Pick operator in the DevTools Console.
Drag and drop a Console operator onto your Data Workflow canvas.
Configure the operator's Info window as follows:
Setting
Value
Category
Console
Label
Picked Data
Connect the output port (right) of the
Leads, Sales, and RevenuePick operator to the input port (left) of thePicked DataConsole operator.
Configure the First Rename Field Operator
This Rename Field operator renames your leads column to x. Doing so lets your leads data serve as the x values.
Drag and drop a Rename Field operator onto your Data Workflow canvas.
Configure the operator's Info window as follows:
Setting
Value
Category
Rename Field
Label
X-axis
Current Name
leads
Target Name
x
Connect the output port (right) of the
Leads, Sales, and RevenuePick operator to the input port (left) of theX-axisRename Field operator.
Configure the Second Rename Field Operator
This Rename Field operator renames your sales column to y. Doing so lets your sales data serve as the y values.
Drag and drop another Rename Field operator onto your Data Workflow canvas.
Configure the operator's Info window as follows:
Setting
Value
Category
Rename Field
Label
Y-axis
Current Name
sales
Target Name
y
Connect the output port (right) of the
X-axisRename Field operator to the input port (left) of theY-axisRename Field operator.
Configure the Third Rename Field Operator
This final Rename Field operator renames your revenue column to z. Doing so lets your revenue data serve as the z values.
Drag and drop another Rename Field operator onto your Data Workflow canvas.
Configure the operator's Info window as follows:
Setting
Value
Category
Rename Field
Label
Z-axis
Current Name
revenue
Target Name
z
Connect the output port (right) of the
Y-axisRename Field operator to the input port (left) of theZ-axisRename Field operator.
Configure the Second Console Operator
This Console operator displays the data after being renamed by the Rename Field operators.
Drag and drop another Console operator onto your Data Workflow canvas.
Configure the operator's Info window as follows:
Setting
Value
Category
Console
Label
Renamed Data
Connect the output port (right) of the
Z-axisRename Field operator to the input port (left) of theRenamed DataConsole operator.
Configure the Output Operator
The Output operator passes your final result to the Hidden component you set up earlier.
Drag and drop an Output operator onto your Data Workflow canvas.
Configure the operator's Info window as follows:
Setting
Value
Category
Output
Component
salesForBubbleChart
Action
value
Connect the output port (right) of the
Z-axisRename Field operator to the input port (left) of thesalesForBubbleChartOutput operator..png)
Click Save Component.
Configure the Chart Component
Now it's time to configure your Chart component and determine which data to reference when populating your chart.
Drag and drop a Chart component onto your canvas, placing it below your
salesForBubbleChartHidden component.In the Property ID field, enter
chartLeadsSalesRevenue.In the Label Text field, enter
Leads vs Sales vs Revenue.In the Chart Title field, enter
Leads vs Sales vs Revenue.In the Inputs table, enter the following:
ID
Label
Chart Type
Categories
Values
salesForBubbleChart
bubble
salesForBubbleChart
.png)
Navigate to the component’s Advanced settings.
From the Series Axis Type and Value Axis Type drop-downs, select Linear.
In the Series Axis Label Text field, enter
Leads.In the Value Axis Label Text field, enter
Sales..png)
Click Save.
Configure the Initializer Component
Lastly, configure an Initializer component to run your Data Workflow.
Drag and drop an Initializer component onto your canvas, placing it below your Data Table component.
In the Property ID and Canvas Label Text fields, enter
initBubbleChart.From the Trigger Type drop-down, select New Submission.
In the Outputs table, enter the following:
Property ID
Type
Value
dwfBubbleChart
trigger
GO
.png)
Click Save Component.
Save your module.
Here's how your completed module looks in the Module Builder:
.png)
Preview your module in Express View. You'll see the data from your data table displayed like a traditional scatter plot. Leads serve as the x-axis, and sales serve as the y-axis. But you'll notice that each point on the chart is a different size. This variation is due to the revenue values. If a point has a larger revenue value, its bubble is larger. And if a point's revenue is smaller, the bubble is smaller. This plot provides an added layer of data to analyze.

Configure the Data Table Component
First, you'll configure a Data Table component with sample data that displays in your bubble chart.
In the Module Builder, drag and drop a Data Table component onto your canvas.
In the Property ID and Canvas Label Text fields, enter
dtSalesByAgent.In the data table, enter the following:
leads
sales
revenue
agentId
240
25
1000000
6635022
320
30
1500000
1953225
180
20
800000
3485878
500
35
900000
9728223
250
10
2000000
7782362
270
18
1700000
8155255
200
33
2300000
6687696
330
22
1200000
5169492
.png)
Click Save.
Configure the Hidden Component
Use a Hidden component to store the output from the Data Workflow component you’ll set up next.
Drag and drop a Hidden component onto your canvas, placing it below your
dtSalesByAgentData Table component.In the Property ID and Canvas Label Text fields, enter
salesForBubbleChart.Click Save.
Configure the Data Workflow Component
Now, you'll configure your Data Workflow component. Here, you'll use a Pick operator to select three keys from your data. Then, you'll convert each of those fields to x, y, and z values. Your x and y values represent data points on each axis. The z values determine the size of each point. Your data must be formatted this way to pass to a Chart component.
Drag and drop a Data Workflow component onto your canvas, placing it below your
dtSalesByAgentData Table component.In the Canvas Label Text and Property Name fields, enter
dwfScatterPlot.
Configure the Input Operator
Drag and drop an Input operator onto your Data Workflow canvas.
Configure the operator's Info window as follows:
Setting
Value
Category
Input
Component
dtSalesByAgent
Required
Yes
Source
Default
Configure the Pick Operator
This Pick operator retrieves the leads and sales columns from your data table.
Drag and drop a Pick operator onto your Data Workflow canvas.
Configure the operator's Info window as follows:
Setting
Value
Category
Pick
Label
Leads, Sales, and Revenue
Pick Keys
leads, sales, revenue
Connect the output port (right) of the
dtSalesByAgentInput operator to the input port (left) of theLeads, Sales, and RevenuePick operator.
Configure the First Console Operator
The first Console operator in this configuration displays the data retrieved by the Pick operator in the DevTools Console.
Drag and drop a Console operator onto your Data Workflow canvas.
Configure the operator's Info window as follows:
Setting
Value
Category
Console
Label
Picked Data
Connect the output port (right) of the
Leads, Sales, and RevenuePick operator to the input port (left) of thePicked DataConsole operator.
Configure the First Rename Field Operator
This Rename Field operator renames your leads column to x. Doing so lets your leads data serve as the x values.
Drag and drop a Rename Field operator onto your Data Workflow canvas.
Configure the operator's Info window as follows:
Setting
Value
Category
Rename Field
Label
X-axis
Current Name
leads
Target Name
x
Connect the output port (right) of the
Leads, Sales, and RevenuePick operator to the input port (left) of theX-axisRename Field operator.
Configure the Second Rename Field Operator
This Rename Field operator renames your sales column to y. Doing so lets your sales data serve as the y values.
Drag and drop another Rename Field operator onto your Data Workflow canvas.
Configure the operator's Info window as follows:
Setting
Value
Category
Rename Field
Label
Y-axis
Current Name
sales
Target Name
y
Connect the output port (right) of the
X-axisRename Field operator to the input port (left) of theY-axisRename Field operator.
Configure the Third Rename Field Operator
This final Rename Field operator renames your revenue column to z. Doing so lets your revenue data serve as the z values.
Drag and drop another Rename Field operator onto your Data Workflow canvas.
Configure the operator's Info window as follows:
Setting
Value
Category
Rename Field
Label
Z-axis
Current Name
revenue
Target Name
z
Connect the output port (right) of the
Y-axisRename Field operator to the input port (left) of theZ-axisRename Field operator.
Configure the Second Console Operator
This Console operator displays the data after being renamed by the Rename Field operators.
Drag and drop another Console operator onto your Data Workflow canvas.
Configure the operator's Info window as follows:
Setting
Value
Category
Console
Label
Renamed Data
Connect the output port (right) of the
Z-axisRename Field operator to the input port (left) of theRenamed DataConsole operator.
Configure the Output Operator
The Output operator passes your final result to the Hidden component you set up earlier.
Drag and drop an Output operator onto your Data Workflow canvas.
Configure the operator's Info window as follows:
Setting
Value
Category
Output
Component
salesForBubbleChart
Action
value
Connect the output port (right) of the
Z-axisRename Field operator to the input port (left) of thesalesForBubbleChartOutput operator.
Click Save.
Configure the Chart Component
Now it's time to configure your Chart component and determine which data to reference when populating your chart.
Drag and drop a Chart component onto your canvas, placing it below your
salesForBubbleChartHidden component.In the Label field, enter
Leads vs Sales vs Revenue.In the Property Name field, enter
chartLeadsSalesRevenue.In the Chart Title field, enter
Leads vs Sales vs Revenue.In the Inputs table, enter the following:
ID
Label
Chart Type
Categories
Values
salesForBubbleChart
bubble
salesForBubbleChart
.png)
Click the Formatting tab at the top of the configuration window.
In the Series Axis Label Text field, enter
Leads.In the Value Axis Label Text field, enter
Sales.From the Series Axis Type and Value Axis Type drop-down, select Linear.
.png)
Click Save.
Configure the Initializer Component
Lastly, configure an Initializer component to run your Data Workflow.
Drag and drop an Initializer component onto your canvas, placing it below your Data Table component.
In the Property ID and Canvas Label Text fields, enter initBubbleChart.
From the Trigger Type drop-down, select New Submission.
In the Outputs table, enter the following:
Property ID
Type
Value
dwfBubbleChart
trigger
GO
.png)
Click Save.
Save your module.
Here's how your completed module looks in the Module Builder:

Preview your module in Express View. You'll see the data from your data table displayed like a traditional scatter plot. Leads serve as the x-axis, and sales serve as the y-axis. But you'll notice that each point on the chart is a different size. This variation is due to the revenue values. If a point has a larger revenue value, its bubble is larger. And if a point's revenue is smaller, the bubble is smaller. This plot provides an added layer of data to analyze.
