Chart Component
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
About the Configuration Window
General
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. 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
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. 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. 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:
|
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. |
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 Panel components. 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
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:
|
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:
|
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.
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:
-
1 Data Table component
-
1 Hidden component
-
1 Chart component
-
1 Initializer component
-
1 Data Workflow component
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 Data Table component onto your canvas. |
3. | To the left of the component's configuration window, click 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 |
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 Hidden component onto the canvas, placing it below your dtUserSubmissionData Data Table component. |
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 component onto the canvas, placing it between the dtUserSubmissionData Data Table and providerCount Hidden components. |
2. | In the Canvas Label Text and Property Name 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. |
4. | Click Save. |
Configure the Chart Component
Using a Chart component, show the aggregated provider data.
1. | Drag and drop a Chart component onto the canvas, placing below the providerCount 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 |
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 Initializer component onto your canvas, placing it above your dtUserSubmissionData Data Table component. |
3. | To the left of the component's configuration window, click Actions. |
5. | In the Outputs table, enter the following: |
Property ID |
Type |
Value |
---|---|---|
dwfProviderCount |
Trigger |
Go |
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