Diagram Tile Bar Graph
- 10 Jul 2023
- 4 Minutes to read
- Print
- DarkLight
This documentation version is deprecated, please click here for the latest version.
Diagram Tile Bar Graph
- Updated on 10 Jul 2023
- 4 Minutes to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Overview
Diagram Tiles use a modified Flow Designer to create a Page/Dashboard Tile comprised of large, graphical icons. This article will detail how to set up a Bar graph using a Diagram Tile.
Example
This example will show how to set up a Bar graph using the Bars step in the Diagram Tile Flow Designer. This particular step expects to receive a list of Decimals. To provide data for this example, an 'Invoices' Data Structure is referenced that has 'SubTotal' as a list of Decimals.
Example Materials
This example works best with a Data Structure that contains a list of Decimals so that it can be mapped as input data for the Diagram Tile. To explore Data Structures further, please start with our Understanding Data Structures article.
To use the 'Invoices' Data Structure, import the project that is attached below to a Decisions environment. Run the 'Add Invoice Flow' to create example data. For more information on Import/Export, please visit our Import/Export Overview article.
To use the 'Invoices' Data Structure, import the project that is attached below to a Decisions environment. Run the 'Add Invoice Flow' to create example data. For more information on Import/Export, please visit our Import/Export Overview article.
- In a Designer Folder, select the CREATE FORM button from the bottom Action Bar.
- When the 'Create Form' window appears, select the Page/Dashboard tab on the left, then select CREATE on the Default template.
- Provide a name for the Page, then select CREATE again.Creating A Page/DashboardTo find out more information on how to create a full-fledged Page/Dashboard, please start with our Create Your First Page/Dashboard article.
- In the Page Designer, expand the Tiles section in the Page Elements tab, then move a Diagram Tile into the workspace.
- Select the Diagram Tile square to populate the Properties for this Page Element.
- Expand the Diagram Tile section of the properties and select CREATE under the Diagram Tile Flow box.
- When the window appears, enter a name for this Diagram Tile Flow, then select CREATE.There are some interesting differences between the Diagram Tile Flow Designer and the regular Flow Designer. Notice that this Designer does not have Start or End steps by default, but they can be added as a graphical icon. In addition, the Steps tab is now catered to Diagram Tile steps specifically. The base Flow Properties have fewer configuration options, but a section is available to configure the inputs for the Diagram Tile.
- In the Diagram Tile Flow Designer, before any steps are added, select the Show Editor button under the Diagram Tile Inputs box.
- Add a piece of input data called ListOfDecimals of the Type Decimal [Number], enable the Is List checkbox.
- In the Steps tab, expand the Charts section and move the Bars step into the workspace.
- Select the Bars icon as it appears in the workspace to populate the Properties for this step.
- For this example, the Inputs section has the only required configuration needed. The only input for this step is Series1, which is expecting the List of Decimals added as input data.
- Once the input is mapped, close and save the Diagram Tile Flow Designer.
- The other sections in the Bars Properties contain configurable options to alter the appearance, function, outcome paths, and more. This example does utilize the ShowValue option to indicate the scale of dollars for when the SubTotals are populated. which can be found in the Chart Setup - Viewsection.
- Back in the Page Designer, select the square with the Diagram Tile so that the Properties appear. In the Diagram Tile section, select the Edit button under the Input Data Flow box.
- Now that the Diagram Tile Flow was created with ListOfDecimals as an input, the Input Data Flow serves to call the data that defines ListOfDecimals.
- In this Flow Designer, the Fetch Entities step will be used to fetch the entire 'Invoice' Data Structure.
- From those results, the End step will take in all of the SubTotals (a list of Decimals) and use them to define the ListOfDecimals in the Bars step of the Diagram Tile. The End step in this Input Flow is already configured to receive the ListOfDecimals input mapping, so that this data can be output to the Diagram Tile.
- Select the orange arrow at the end of the 'Done' outcome path on the Start step.
- When the 'Add After' window appears, select the Fetch Entities step from the Favorite Steps section, then add it to the Flow.
- Connect both the 'Results' and 'No Results' outcome paths to the End step.
- Select the Fetch Entities icon in the Flow Designer. In the Entity Fetch Definition section, use the Type Name dropdown and the All/Search option to call the 'Invoice' Data Structure to this step.
- Select the End step icon.
- In the Inputs section for this step, use the Select From Flow mapping type option to choose Entity Results > All SubTotals.
- Close and save the Input Flow once complete, then close and save the Page.
- In the Designer Folder, right-click the Page name and select Show Preview from the Action Menu. A bar will appear to represent the SubTotal amount for each piece of 'Invoice' data that was added. In this example, there were four amounts from four invoices.Diagram Tiles have enormous capabilities for designing graphical Page/Dashboard tiles. The Bars step itself has several different options for customizing the look and feel, these options are available with most steps in the Diagram Tile Flow. There are also options to configure a single Bar that is either vertical or horizontal. All of these different steps use different types of data as inputs, this is the most important part to note when configuring a Diagram Tile and the corresponding Input Flow.
Was this article helpful?