Chart Component

Estimated Reading Time:  8 minutes

Overview

Charts are a great way to display data sets on your application. Using the Chart component, you can add and configure different types of charts on your dashboard. With the right chart, your end-user End-users, also known as Express Users, are the individuals accessing an application through Express View. In most cases, end-users are the customers using the product. can visualize your data in a meaningful way.

You'll use a Chart component when you want to display data on your application in a chart or graph.

Here are some common examples of when to use the Chart component.

  • To display a scatter plot to track the number of sales for each sales agent in your department.
  • To display a pie chart to show the percentages of end-user submissions.
  • To display a bar graph that shows product consumption by demographic.

You can find the Chart component under the Charts & Graphs group to the left of the Module Builder.

What You'll Learn

After completing this article, you’ll know when to use a Chart component, how to configure its settings, and how to use it in an Unqork application.

About the Configuration Window

General

A static image displaying the Chart component's General configuration window.

Setting

Description

Chart tab

Selected by default and on opening of the modal A modal is a window that appears on top of the content you are currently viewing.. This tab gives you access to display settings for naming, Series, Theme, and Format.

Formatting tab

Select this tab to access configuration for your chart's axis. You can also add a legend to your chart in this tab. To add a legend, select the Show Legend checkbox.

Permissions tab

Select this tab to see the RBAC RBAC (Role-Based Access Control) is a method to control system access for authorized users. The role in RBAC refers to the levels of access employees have to a network. (role-based access control) settings of the component.

Cancel

Click this button to undo any unsaved configuration changes and return to the canvas.

Save

Click this button to save all settings as configured and return to the canvas.

Chart Tab

A static image dispaying the Chart component's Chart tab settings.
(click to expand image)

Setting

Description

Label

A Label indicates the purpose of the corresponding field or component. For input components, the Label tells the end-user how to interact with the field. For non-input components, the Label is not end-user facing, and only appears in the Module Builder. 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.

Property Name

A Property Name is the unique field ID used by Unqork to track and link components in your module.

The Property Name is how the software identifies your component. Using Property Names lets you link components, creating logic-based configurations and API APIs (application programming interfaces) are a set of protocols and definitions developers use to build and integrate application software. APIs act as the connective tissue between products and services. (application programming interface) calls.

Property Names must use camel case (stylized as camelCase) without spaces or punctuation.

Chart Title

The title that shows above your chart.

Chart Subtitle

The subtitle that shows under your chart title in a smaller font.

Chart Height

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

Series Configuration

Setting

Description

Stack Series

Overlays multiple data sets in your graph. This setting prevents multiple data inputs from overlapping in your application.

NOTE  If you only have a single data input, this setting has no effect.

Inputs

Use this section to input and organize the data that your chart must display.

ID

In this field, enter the Property ID A Property ID is the unique field ID used by Unqork to track and link components in your module. of your input data.

NOTE  All data you reference in your input must come from the same array as the data id. When you input additional data, it creates a separate chart.

Label

In this field, enter the value for what you're counting. For example, if your graph displays a count of numbers, enter Number. If you're displaying a percentage of businesses involved in an industry, enter Businesses.

Chart Type

This field sets the type of chart you'll use to display your data. These include the following chart options:

  • Column: Effective for comparison of at least one data point. Column charts show data as a rectangle with the height of the rectangle proportional to the values being plotted. Typically, a column chart plots the variable value vertically, and the fixed dimension horizontally.

  • Bar: Effective for comparison of at least one data point. Bar charts show data as a bar with the height of the bar proportional to the values being plotted. Typically, a bar chart plots the variable value horizontally, and the fixed dimension vertically.

  • Pie: A pie chart is a circular-type chart, divided into slices to show numeric proportion. In a pie chart, the arc length of each slice relates to the quantity the slice represents. When used in conjunction with the Inner Size setting, you can make your pie chart into a doughnut chart.

  • Line: A line chart displays information as a series of data points connected by straight line segments. These charts are typically used to show information that changes over time.

  • Spline: A spline chart is a line chart that uses curves instead of straight lines. These charts are typically used to emphasize data trends as they play out gradually and over time.

  • Scatter: A scatter chart uses dots to represent values for two different variables. The position of each dot in the horizontal and vertical axis shows values for the data point. You'll typically use these charts to show relationships between variables.

  • Funnel: These charts typically show stages in a sales process and the amount of potential revenue for each stage.

  • Bubble: Bubble charts are used to show if at least three numerical values are related or share some pattern. The charts can also show trends over time or compare categorical variables.

  • Heatmap: These are specialized charts using colors to represent data values in a table. These are most helpful when used with large and complex data sets.

Categories

In this field, enter the data categories you show on your chart. Log only the key of your data's key/value pairs that you want to display for each category.
For example, your application has three insurance provider options. You want to show the end-user how popular each insurance provider is to help guide their choice. Your insurance provider data all share the data key Provider. So, in the Categories field, you enter the key Provider.

Values

Use this field to show the values for each category on your chart. Enter only the key of your data's key/value pairs that you want to display for each category value.

Colors

Manipulates the color of an input category if the input data array contains colors. Your color data can be in word or HEX form.

Size

This setting expands the size of your chart in pixels.

Inner Size

Adds an inner-hole to make your pie chart into a doughnut chart.  This setting only applies to pie charts.

Event Output

Allows the end-user to select a category on your chart's user interface. You can then output the selected category to a Property ID A Property ID is the unique field ID used by Unqork to track and link components in your module..

ID

The Property ID A Property ID is the unique field ID used by Unqork to track and link components in your module. you use to output your Filter Category. For example, if you want to store the selected Filter Category in a Hidden component named idOutput, enter idOutput.

Filter Category

In this cell, enter the input category value displayed on your chart. For example, if your Input category is provider, enter provider.

Chart Theme

Setting

Description

Chart Theme

Sets the theme or color scheme of your chart.

Month Format

Setting

Description

Month Format

Use this setting to change the month format of date values on your chart.

Additional Settings

Setting

Description

Drilldown

Use this setting to narrow down to any nested categories.

Aggregation

Use this setting to aggregate a variable the tracking cascading status.

Top

Us this setting to return only the top records.

Print Chart, Download CSV, XLS, and PDF Label

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

Field Tags

Assign components one-word labels to help organize, identify, and group the components in your application.

Consider an example from the API Specification Snippet: Field Tags are applied to Hidden components in the panelRequest and panelResponse Panels. The Field Tags identify the data type of parameters included in the API APIs (application programming interfaces) are a set of protocols and definitions developers use to build and integrate application software. APIs act as the connective tissue between products and services. request and response. The API Docs Dashboard tool populates with information about each parameter’s data type, identified by the Field Tag.

Field Tags act as a type of Property ID A Property ID is the unique field ID used by Unqork to track and link components in your module. group and let you group components for configuration purposes. Field Tags let you target two or more components using a simple logic component.

For example, add the Field Tag tagForDecision to multiple components in your module. Open the Inputs table of a Decisions component and reference the tagForDecision Field Tag as the input of the Decisions component. The output of the Decisions component then affects all components with the tagForDecision Field Tag.

Save your Field Tags by pressing Enter (Return) or adding a comma after each entry.

Comment

Use this field to keep your teammates informed about what this Chart component does.

Formatting Tab

A static image dispaying the Chart component's Formatting tab settings.
(click to expand image)

Series Configuration

Setting Description

Series Axis Label Text

Enter a label for the Series axis of your chart. For example, this is the label of your y-axis in a default bar graph.

Series Axis Type

Use this drop-down to define the axis type depending on the Series data you want to display. Options include:

  • Category

  • Linear

  • Logarithmic

  • Datetime

Value Axis Label Text

Enter a label for the Value axis of your chart. For example, this is the label of your x-axis in a default bar graph.

Secondary Value Axis Label Text

Enter a secondary label for the Value axis of your chart.

Value Axis Type

Use this drop-down to define the axis type depending on the Value data you want to display. Options include:

  • Category

  • Linear

  • Logarithmic

  • Datetime

Value Axis Maximum

Lets you set the maximum value length of your Value axis.

Override Series Colors

Enter a HEX code to change the Series colors.

Reverse Series Axis

Check () this box to reverse the value order of your Series axis.

Be default, this box is unchecked ().

Reverse Value Axis

Check () this box to reverse the value order of your Value axis.

Be default, this box is unchecked ().

Label Configuration

Setting Description

Series Label Format

Use this field to change the Series label format.

Tooltip Format

Use this field to change the interactive hover-over tooltip format.

Show Legend

Check () this box to add a legend to your chart.

Be default, this box is unchecked ().

Enable Dynamic Legend

Check () this box to only include line keys plotted on a line chart.

Be default, this box is unchecked ().

Adding a Chart Component

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. The application must first determine the number of membership submissions for each insurance provider for the chart to display correctly.

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

What You Need

For this configuration, you'll need the following components:

To set up your Data Workflow, you need:

Configure the Data Table Component

Start by creating a data set that contains some 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 A Property ID is the unique field ID used by Unqork to track and link components in your module. and Canvas Label Text Label Text conveys what the input component is and what information it displays. Enter the purpose of the corresponding component or field. fields, enter dtUserSubmission Data.
3. To the left of the component's configuration window, click Data Icon Data.
4. In the 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

A static image displaying the completed configuration of the Data Table component.

5. Click Save & Close.

Configure the Hidden Component

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

1. Drag and drop a Radio Buttons icon Hidden component onto the canvas, placing it below your dtUserSubmissionData Dropdown Component Icon Data Table component.
2. In the Property ID A Property ID is the unique field ID used by Unqork to track and link components in your module. and Canvas Label Text Canvas Label Text indicates the purpose of the corresponding field or component. For non-input components, the Canvas Label Text isn't end-user facing, and only appears in the . fields, enter providerCount.
3. Click Save & Close.

Configure the Data Workflow Component

Chart components can't make advanced calculations on their own. So, you'll a Data Workflow component to aggregate the data you want to display to the end-user.

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

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

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.
4. Click Save.

Configure the Chart Component

Using a Chart component, show the aggregated provider data.

1. Drag and drop a KPI Icon Chart component onto the canvas, placing below the providerCount Radio Buttons icon Hidden component.
2. In the Label and Property Name 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

providerCount

Member Count

Pie

provider

count

A static image displaying the Chart component's completed Inputs table and a Chart Title of Providers.

5. To the top right of the component's configuration window, click Formatting.
6. Set Show Legend to (Checked).

7. Click Save.

Configure the Initializer Component

To initiate your application when the browser opens, 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 A Property ID is the unique field ID used by Unqork to track and link components in your module. and Canvas Label Text Canvas Label Text indicates the purpose of the corresponding field or component. For non-input components, the Canvas Label Text isn't end-user facing, and only appears in the . fields, enter initDwfProviderCount.
3. To the left of the component's configuration window, click Actions Icon Actions.
4. Set the Trigger Type Deteremines how the component triggers. as New Submission The component fires when the page or called module loads without an existing submission ID. Dashboards and remote execute modules are great uses for this trigger..
5. In the Outputs table, enter the following: 

Property ID

Type

Value

dwfProviderCount

Trigger

Go

A static image displaying the completed Initializer component's Outputs table and New Submission Trigger Type.

6. Click Save & Close.
7. Save your module.

Preview your module in Express View Express View is how your end-user views you application. Express View also lets you preview your applications to test your configuration and view the styling. This is also the view your end-users will see when interacting with your application. After configuring a module, click Preview in the Module Builder to interact with the module in Express View.. Notice how you can hover over and select portions of the pie chart to identify specific information.

Structure of a Chart Component's Data

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

Resources