Chart Component

Overview

Charts are a great way to display data sets in your application. Using the Chart component, you can add and configure different types of charts on your dashboard, letting your end-user visualize your data in a meaningful way.

Below are some common examples of when to use the Chart component:

To learn more about general component settings and those that display when a component is associated with Data Models, view our General Component Settings article.

Field Text

A static image displaying the UDesigner Chart Component's Display settings.

Setting

Description

Label Text

Label Text conveys what the input component is and what information it displays. Enter the purpose of the corresponding component or field.

User-friendly labels make your module more accessible. Keep labels short and descriptive (a word or two) using title case. For longer entries, use sentence case.

Formatting

Setting

Description

Chart Title

The title that displays above your chart in Express View.

Chart Subtitle

The subtitle that displays below the chart title in Express View.

Chart Height (in px)

Adjusts the height (in pixels) of the frame that contains your chart in Express View. As you adjust the height of your chart box, the chart resizes accordingly.

Print Chart, Download CSV, XLS, and PDF Label

Customizes the label of the download options in the chart drop-down menu.

To expand on the example from earlier, say you want to build an application that shows the popularity of insurance providers to clients. You can use a Chart component to display this data in a pie chart. The Chart component can only display data, so you must first determine the number of membership submissions for each insurance provider for the chart to display correctly.

These instructions assume that you have an open module saved with a title.

Configure the Data Table Component

Begin by creating a data set that contains customer insurance enrollment data.

1. In the Module Builder, drag and drop a Dropdown Component Icon Data Table component onto your canvas.
2. In the Property ID and Canvas Label Text fields, enter dtUserSubmission Data.
3. In the Inputs data table, enter the following:

 

A

B

1

submission

provider

2

1

Aetna

3

2

Cigna

4

3

BCBS

5

4

Kaiser

6

5

UHC

7

6

Aetna

8

7

Cigna

9

8

BCBS

10

9

Kaiser

11

10

UHC

4. Click Save Component.

Configure the Hidden Component

This Hidden component stores your provider popularity data. Your Chart component references this data to display to the end-user.

1. Drag and drop a iconHidden component onto the canvas, placing it below your dtUserSubmissionData Dropdown Component Icon Data Table component.
2. In the Property ID and Canvas Label Text fields, enter providerCount.
3. Click Save Component.

Configure the Data Workflow Component

Chart components cannot make advanced calculations, so you'll configure a Data Workflow component to aggregate the data you want to display to the end-user.

1. Drag and drop a Data Workflow component onto the canvas, placing it between the dtUserSubmissionData Dropdown Component Icon Data Table and providerCount iconHidden components.
2. In the Property ID and Canvas Label Text fields, enter dwfProviderCount.

Configure the Input Operator

1. Drag and drop an Input operator onto your Data Workflow canvas.
2. Configure the operator's Info window as follows:

Setting

Value

Category

Input

Component

userSubmissionData

Required

Yes

Source

Default

Configure the Pick Operator

1. Drag and drop a Pick operator onto the Data Workflow canvas.
2. Configure the operator's Info window as follows:

Setting

Value

Category

Input

Label

Pick Provider

Pick Keys

provider

3. Connect the output port (right) of the Input operator to the input port (left) of the Pick operator.

Configure the Aggregate Operator

1. Drag and drop an Aggregate operator onto the Data Workflow canvas.
2. Configure the operator's Info window as follows:

Setting

Value

Category

Aggregate By

Label

Count Provider

Aggregation Type

Count By

Join Group Keys?

No

Group Key

provider

Value Key

count

3. Connect the output port (right) of the Pick operator to the input port (left) of the Aggregate operator.

Configure the Output Operator

1. Drag and drop an Output operator onto the Data Workflow canvas.
2. Configure the operator's Info window as follows:

Setting

Value

Category

Output

Component

providerCount

Action

value

3. Connect the output port (right) of the Aggregate operator to the input port (left) of the Output operator.

A static image displaying the completed Data Workflow operator configuration on the Data Workflow canvas.

4. Click Save Component.

Configure the Chart Component

Using a Chart component, you can display the aggregated provider data.

1. Drag and drop a KPI Icon Chart component onto the canvas, placing below the providerCount iconHidden component.
2. In the Property ID and Label Text fields, enter submissionChart.
3. In the Chart Title field, enter Providers.
4. In the Inputs table, enter the following:

 

ID

Label

Chart Type

Categories

Values

1

providerCount

Member Count

Pie

provider

count

5. Under Label Configuration in Advanced settings, set Show Legend to  (ON).
6. Click Save Component.

Configure the Initializer Component

To initiate your application on page load, you'll use an Initializer component.

1. Drag and drop an Radio Button component icon Initializer component onto your canvas, placing it above your dtUserSubmissionData Dropdown Component Icon Data Table component.
2. In the Property ID and Canvas Label Text fields, enter initDwfProviderCount.
3. Navigate to the Radio Button component icon Initializer component's Actions settings.
4. Set the Trigger Type to  New Submission.
5. Next to Inputs & Outputs, click Edit.
6. In the Outputs table, enter the following: 

 

Source

Type

Value

1

dwfProviderCount

Trigger

GO

7. Click Save Component.
8.  Save  your module.

Preview your module in Express View. Notice how you can hover over and select portions of the pie chart to identify specific information.

The Chart component uses input Property IDs to display array data.

Resources