Welcome to Semarchy xDM.
This guide contains information about using the product to design and develop Dashboard Applications.
Preface
Overview
Using this guide, you will learn how to:
- Use Dashboard Builder to design and develop a dashboard application.
- Design the queries and charts to render visualizations.
- Design dashboards assembling the charts.
- Use your dashboards into dashboard applications or embed them into Semarchy applications.
Audience
Document Conventions
This document uses the following formatting conventions:
Convention | Meaning |
---|---|
boldface | Boldface type indicates graphical user interface elements associated with an action, or a product specific term or concept. |
italic | Italic type indicates special emphasis or placeholder variable that you need to provide. |
| Monospace type indicates code example, text or commands that you enter. |
Other Semarchy Resources
In addition to the product manuals, Semarchy provides other resources available on its web site: https://www.semarchy.com.
Obtaining Help
There are many ways to access the Semarchy Technical Support. You can call or email our global Technical Support Center (support@semarchy.com). For more information, see https://www.semarchy.com.
Feedback
We welcome your comments and suggestions on the quality and usefulness
of this documentation.
If you find any error or have any suggestion for improvement, please
mail support@semarchy.com and indicate the title of the documentation
along with the chapter, section, and page number, if available. Please
let us know if you want a reply.
Introduction to Semarchy xDM
Semarchy xDM is the Intelligent Data Hub platform for Master Data
Management (MDM), Reference Data Management (RDM), Application Data Management
(ADM), Data Quality, and Data Governance.
It provides all the features for data
quality, data validation, data matching, de-duplication, data authoring,
workflows, and more.
Semarchy xDM brings extreme agility for defining and implementing data management applications and releasing them to production. The platform can be used as the target deployment point for all the data in the enterprise or in conjunction with existing data hubs to contribute to data transparency and quality.
Its powerful and intuitive environment covers all use cases for setting up a successful data governance strategy.
Introduction to Semarchy xDM Dashboards
Semarchy xDM Dashboards is the component of Semarchy xDM for designing visualizations and dashboards that create insight by combining your business data and the data stored and managed in the Semarchy xDM intelligent data hubs.
In Semarchy xDM Dashboards, designers:
- Connect a variety of datasources, including data warehouses, enterprise applications or Semarchy xDM data locations.
- Develop queries on those data sources. These queries return datasets with identified attributes.
- Design charts that use the query attributes as dimensions or aggregated metrics to render visualizations, such as bar, column, line or pie charts.
- Arrange charts into dashboards, which are grouped into dashboard applications.
- Optionally embed charts and dashboards into Semarchy xDM forms and applications.
Working with Dashboard Builder
Dashboard Builder is the design-time interface to create dashboard applications. It is available from the Semarchy xDM welcome page. Click the Dashboard Builder icon to open this application in a web browser.
Dashboard Builder appears as shown below:
The Dashboard Builder interface includes:
- The Navigation Drawer at the left-hand side.
- The Application Header which displays:
- The Menu icon to hide/show the navigation drawer.
- A breadcrumb to the object or list of objects currently displayed.
- The user menu.
- The main editor, showing the object being edited or a list of objects
- An optional secondary side nav at the right-hand side shows the properties of an object selected within the main editor.
Dashboard Builder exposes a large number of fields. These fields are documented within the editor. Move your cursor over the field and click the information icon to display the documentation for each field, as shown below.
Advanced Dashboard Builder Features
YAML Editing
All objects in Dashboard Builder are stored in a YAML form: a text representation of the object. You can access for all editors this YAML representation by clicking the Switch to the YAML editor button in the editor toolbar.
Use YAML editor to quickly modify objects and perform find-replace type of operations.
More details about YAML are available in [Appendix A: YAML Reference].
Issue Reporting
Dashboard Builder provides a built-in validation feature available:
- As a Validate button in each editor’s toolbar to validate this editor’s object.
- As a Issues Report item in Dashboard Builder navigation drawer to validate the entire application.
Both validation methods display an issue report describing the various issues found in the object or application.
Managing Applications
When you connect to Dashboard Builder, the dashboard applications list appears:
- When this list is empty, a Create Application button appears to create your first application.
- When this list already contains applications, you can click any application in the list to open it and start working. You can also create or import new applications.
Creating an Application
To create an application:
- In the application list, click on the Create Application button or click on the floating action button in the lower-right corner of the screen.
- Enter a Name for your application and then click Create.
Your newly application opens in the Application editor. - In this editor, configure the application properties:
- Title: The label that appears for this application in the welcome page and navigation drawer header.
- Visible: Select this option to make the application visible on the welcome page. Un-select it to hide the application from the welcome page. An hidden application remains available via its URL.
- Required Role: Select a role required to access the application. This role must be configured in the Semarchy xDM platform.
- Avatar, Cover, Favicon and Title Color define the look of our application.
- Select a Palette Type (Monochrome or Colorful), and then a color or shade. This palette is applied by default to all dashboards for which a specific palette is not defined.
- Click the Save button in the toolbar to save your application.
Closing an Application
To close an application, click on the user menu at the right end of the header and select:
- Logout to leave Semarchy xDM.
- Close Application to return to the application list.
- All Applications to return to the welcome page.
Exporting, Importing and Copying an Application
You can export and import applications as a way to move them across environments, or use export as a way to backup your applications at a certain stage of their design.
To export an application:
- In the application list, select an application and then select Export in the action menu.
A export file containing the application is downloaded.
To import an application:
- In the application, move your mouse over the Fab button (lower right corner) and then select the Import Application action.
- Click in the Import Dashboard Application dialog to browse and select an export file, or drop an export file in the dialog.
If the file selected or dropped is a valid export file, the dialog shows its name. - The name that you enter in the dialog allows to replace an existing application or create a new one.
- Enter a new name and then click Create to create a new application from your export file.
- Enter an existing application name and then click Replace to replace the application with that name with the one from your export file.
To copy an application:
- In the application list, select an application and then select Copy in the action menu.
- Enter a new name and then click Copy to create a copy of your application with this new name.
Deleting an Application
To delete an application:
- In the application list, select an application and then select Delete in the action menu.
- Enter
DELETE
in the confirmation dialog and then click the DELETE button.
The selected application is deleted
Renaming an Application
In Semarchy xDM Dashboards, an application is uniquely identified by its name, and all inbound links or references to the application and to objects of the application use this name.
To rename an application:
- In the application list, select an application and then select Rename in the action menu.
- Enter a new name for the application and then click the RENAME button.
The selected application is renamed.
CorpDashboard_work
application that you want to promote to production to replace the existing CorpDashboard
application, first rename the CorpDashboard
application to CorpDashboard_old
and then rename CorpDashboard_work
to CorpDashboard
.Connecting your Data
Semarchy xDM Dashboards connects to your data via datasources. Datasources must be defined in Dashboard Builder prior to creating queries on top of them.
Creating a Datasource
To create a datasource:
- Select Datasources in the navigation drawer.
The Datasources list opens. - Click on the Create new datasource floating action button in the lower-right corner of the screen.
- In the New Datasource dialog
- Select the JNDI Resource corresponding to a datasource configured in the application server.
- Enter a Name for the datasource.
- Click Create.
The datasource editor opens.
- In the datasource editor, change if necessary the Database Type to the technology of your datasource. The type is automatically detected for the JNDI resource.
- Click the Save button in the toolbar.
Managing Datasources
Datasources in the datasource list support the following operations:
- Open a datasource by clicking it in the list.
- Copy a selected datasource. When copying a datasource, you are prompted for the name of the new datasource.
- Rename a selected datasource. Note that when renaming a datasource, the incoming references to this datasource are not automatically updated.
- Delete selected datasources. This operation cannot be undone.
Creating a Query
To create a query:
- Select Queries in the navigation drawer.
The Queries list opens. - Click on the Create new query floating action button in the lower-right corner of the screen.
- In the New Query dialog:
- Select the Datasource containing the data that you want to query.
- Enter a Name for the query in the New Query
- Click Create.
The query editor opens.
- In the query editor, enter the SQL Query to access your data. This query must be a SELECT statement returning a dataset.
- Use the Run Query button in the toolbar or use the
CTRL+Enter
shortcut (⌘+Enter
on macOS) to run your query:- If the query is invalid, an error appears under the SQL Query field.
- If the query is valid, the list of Query Attributes returned by the query or the Data Preview showing the returned records appears in the second half of the editor. You can switch between these two views using the Show Query Attributes/Show Data Preview toggle in the toolbar.
- Configure each attribute in the Query Attributes table:
- Click in the Label column to define a label.
This label is used by default for a dimension or measure based on this query attribute and may be overridden for each dimension or measure. Note that the attribute Name is used by default as its label. - Define the default Format for a numeric or datetime attribute. This format is used by default when displaying a value based on this query attribute and may be overridden in the chart.
- Define whether this query attribute may be used as a Measure or Dimension in your charts. Unselecting a checkbox prevents using the attribute as a measure/dimension when designing charts. Note that the Time Dimensions checkbox is for future use.
- Select Show in drilldown to make this query attribute visible available in the drilldown data tables.
- Select the Sortable option to allow users to use this query attribute to sort drilldown data tables. Consider disabling this option for attributes not suitable to sort the dataset for performance reasons.
- Click in the Label column to define a label.
- Click the Save button in the toolbar to save the query.
Advanced Query Configuration
This section describes the advanced configuration options for the query, which includes:
- Query Actions Configuration, to define the actions a user can take with drilldown data.
Query Actions Configuration
When drilldown is enabled for a chart (using the Enable drilldown property), users can click on a shape or measure value in that chart to open a drilldown data table. This table shows the records behind the aggregated measure.
Query actions are available contextually on records of the drilldown data table, each query action appearing as a menu item. Clicking a query action opens a URL that is parameterized with the query attribute values of the record.
A Products query returns product records, including the BrandName
and BrandID
query attributes.
Possible actions for this query are:
- Search for Brand: This action opens the search results for the brand, using the following URL:
http://google.com/search?q=${BrandName}
- Open in Semarchy: This action open a given Semarchy application on a business object showing the brand information, using the following URL:
mdm-app/ProductRetail/ProductRetailMDM/browsing/ProductsByBrand/${BrandID}
.
In both cases, you contextualize the URL with the values of BrandName
and BrandID
for the record for which this action is triggered.
Note that the first URL use an absolute path (starting with http:
), and the second one uses a relative path which works for a data management application running in the same Semarchy xDM
To configure query actions:
- In the query editor, select the Open query properties toolbar button. The chart properties side nav opens.
- Expand the Query actions section. The list of query actions already configured appears.
- Click Add Action.
- In the New Query action dialog:
- Enter a Name and a Label for the new query action. The label is used for the menu item corresponding to this action.
- Define the URL for the query action, parameterized with query attributes using the following syntax:
${query-attribute-name}
. For example:${PRODUCT_ID}
. - Optionally select a Required role to view this action in the menu. This role must be configured in the Semarchy xDM platform.
- Optionally select a Target where the URL should open:
- Current tab replaces the entire browser tab with the URL.
- New tab opens the URL in a new tab.
- Chart container opens the URL constrained in the chart element, supporting the navigation back to the drilldown table.
- Optionally select an Icon used in the action menu item.
- Click Create to create the action. It appears in the action list.
When composing the URL the query attribute values are processed as described below:
- Null values are replaced with empty strings and not processed further.
- Existing values are formatted as follows:
- Number values use JSON-like number formatting.
- String values as rendered as is.
- Date and datetime values the use ISO-8601 format, that is
YYYY-MM-DD
orYYYY-MM-DDTHH:mm:ss.SSSZ
.
- Formatted values are then percent-encoded for the URL, replacing unsafe ASCII characters with a
%
followed by two hexadecimal digits.
URL can be relative or absolute. Relative URLs only have a path and do not start with <scheme>://
or /
. Relative URLs are resolved from the Server Base URL defined in the platform configuration.
For example,
mdm-app/CustomerB2CDemo/CustomerB2C/browsing/Person/${PERSON_ID}
would resolve to
http://xdm.acme.com:8088/semarchy/mdm-app/CustomerB2CDemo/CustomerB2C/browsing/Person/${PERSON_ID}
if the Server Base URL is set to http://xdm.acme.com:8088/semarchy
in the platform configuration.
In the list of query actions, you can:
- Click a query action to open its sidesheet and edit its properties.
- Delete a query action.
- Use the Reorder icon to drag and reorder query actions in the list.
Managing Queries
Queries in the query list support the following operations:
- Open a query by clicking it in the list.
- Copy a selected query. When copying a query, you are prompted for the name of the new query.
- Rename a selected query. Note that when renaming a query, the incoming references to this query are not automatically updated.
- Delete selected query. This operation cannot be undone.
Building Charts
Chart Overview
A Chart is composed of:
- Measures and Dimensions, defining a Pivot Query, that is the shape of the dataset rendered by the chart. Measures and dimensions are based on query attributes.
- A Chart Type, defining the visualization used to display the dataset. For example, a line chart.
- Configuration elements applies to the measures, the dimensions and to the chart itself. These elements depend on the chart type.
Understand the Pivot Query
The measures and dimensions of a chart define the pivot query. A good representation of a pivot query is in the form of a table:
- The Rows (aka. Categories) and Columns (aka. Series) of the table are the Dimensions,
- the Measures are the values in the cells at the intersection of the rows and columns.
In the context of charts:
- Columns are also known as Series.
- Rows are also known as Categories.
These terms are equivalent in the rest of the documentation.
The following example illustrates the various configurations of a pivot table.
A table shows Product as rows and Years as columns. The cell at the intersection of a given product and a given year show the Domestic Revenue (that is the sum of the Domestic Sales) for that product and that year.
The pivot table definition is:
- Rows: Product
- Columns: Year
- Measures: Domestic Revenue: SUM(Domestic Sales)
It renders as:
2017 | 2018 | 2019 | |
---|---|---|---|
Product #1 | 10'000 | 15'000 | 16'000 |
Product #2 | 0 | 1000 | 8'000 |
Product #3 | 16'000 | 10'000 | 11'000 |
A pivot query may have multiple rows and columns as explained below.
From the same product revenue per year table, we add an additional a Quarter column to divide the revenue by quarters.
Pivot table definition:
- Rows: Product
- Columns: Year, Quarter
- Measures: Domestic Revenue: SUM(Domestic Sales)
2017 | 2018 | ||||||
---|---|---|---|---|---|---|---|
Q1 | Q2 | Q3 | Q4 | Q1 | Q2 | … | |
Product #1 | 2'000 | 2'000 | 3'000 | 3'000 | 4'000 | 4'000 | … |
Product #2 | 0 | 0 | 0 | 0 | 500 | 0 | … |
Product #3 | 3'000 | 4'000 | 4'000 | 5'000 | 5'000 | 100 | … |
Similarly, if we add to the rows the Product Family before the Product, then the table becomes a tree table where the products appear under their parent family.
Pivot table definition:
- Rows: Product Family, Product
- Columns: Year, Quarter
- Measures: Domestic Revenue: SUM(Domestic Sales)
2017 | 2018 | ||||||
---|---|---|---|---|---|---|---|
Q1 | Q2 | Q3 | Q4 | Q1 | Q2 | … | |
Family #1 | |||||||
- Product #1 | 2'000 | 2'000 | 3'000 | 3'000 | 4'000 | 4'000 | … |
- Product #2 | 0 | 0 | 0 | 0 | 500 | 0 | … |
Family #2 | |||||||
- Product #3 | 3'000 | 4'000 | 4'000 | 5'000 | 5'000 | 100 | … |
Similarly, the pivot table may have multiple measures.
If we want to define a second measure, for example, the International Revenue, on the original pivot query, we would have 2 measures on each cell.
Pivot table definition:
- Rows: Product
- Columns: Year
- Measures: Domestic: SUM(Domestic Sales), International: SUM(International Sales)
2017 | 2018 | 2019 | |
---|---|---|---|
Product #1 | Domestic: 10'000 | Domestic: 15'000 | Domestic: 16'000 |
… | … | … | … |
For this situation, you must decide whether the labels of the multiple measures will be inserted as rows or columns. For example, if you use them after the Year column:
Pivot table definition:
- Rows: Product
- Columns: Year, (Measures)
- Measures: Domestic: SUM(Domestic Sales), International: SUM(International Sales)
2017 | 2018 | 2019 | ||||
---|---|---|---|---|---|---|
Domestic | International | Domestic | International | Domestic | International | |
Product #1 | 10'000 | 50'000 | 15'000 | 0 | 16'000 | 78'000 |
… | … | … | … | … | … | … |
We could also put the (Measures) on the rows instead, and the result would be different.
Chart types
The following charts types are supported:
- Simple Charts:
- The Number chart (
NUMBER
) displays a single number value, possibly indicating a target goal and a variance. - The Pivot Table (
PIVOT_TABLE
) displays the pivot query as a table with a hierarchy of rows and columns. - The Donut or Pie (
DOGNUT
) chart show percentages of values between categories, by dividing a circle or a disk into proportional segments. - The Gauge chart shows values as performance gauges for each category, with lower and upper ranges.
- The Number chart (
- Axis Charts are used to compare values across many categories:
- The Column (
COLUMN
) and Bar (BAR
) charts show values side by side as vertical or horizontal bars, across categories. These charts support clustering, supporting two or more data series plotted side-by-side and grouped together under categories. - The Line (
LINE
) graph shows values over a continuous interval. This chart is most frequently used to show trends and data changes over time. It supports multiple data series to compare values and trends. - The Area (
AREA
) graph is similar to the line graph with the area below the line filled. Area graphs support stacking. - The Combined (
COMBINED
) chart use a secondary value axis to combine bar/columns and line charts on the same visualization.
- The Column (
- Hierarchical charts
- The Sunburst (
SUNBURST
) diagram shows a hierarchical distribution of the values in a series of rings. - The Treemap shows a hierarchy of categories while also displaying quantities for each category via area size.
- The Sunburst (
Each chart type is able to display certain shapes of pivot queries.
The table below details configuration examples (measures, rows, and columns) and the result for each chart type.
Chart Type | Measures | Rows/ Categories | Columns/ Series | Description |
---|---|---|---|---|
Column | SUM(Sales) | Year, Quarter | Product_Family | Shows the revenue for each quarter of each year, with groups of columns/bars representing the product families. Each group may be organized as:
If no Column/Series value is provided, this chart shows the summed revenue for all products as a single bar. |
Line | SUM(Sales) | Year, Quarter | Product_Family | Shows the trend of revenue over quarters and years as lines, each line representing a product family. Lines may be organized as:
If no Column is provided, this chart shows the summed revenue for all products as a single line. |
Combined | SUM(Sales), COUNT(Products) | Year, Quarter | (Measures), Product_Family | This chart combines a Column chart displaying the first measure (Sales by Quarter) and a Line chart displaying the second one (Number of Products by Family by Quarter). Each measure is configured a separate axis that supports stacking. |
Donut (Pie) | SUM(Sales) | Year | Product_Family | Show the distribution of the revenue by product family as a multi-ring donut, each ring representing one year. If no row is provided, a single pie or donut shows the product revenue distribution by family. |
Sunburst | SUM(Sales) | Product_Family, Sub_Family, Brand | N/A | Show as a series of concentric rings (sunburst) or nested rectangles (treemap) the distribution of the revenue for the product families, sub-family and then brand. |
Gauge | SUM(Sales) | Brand | Year | Show a series of gauges representing the revenue for each brand and for each year. Each gauge has colored ranges and goals indicators. |
Number | SUM(Sales), Target | N/A | N/A | Shows a single revenue numeric value, with an indicator giving the variance against a target value, which may be provided as a literal or as a second measure. |
The Chart Editor
Chart Editor Overview
The chart editor appears as shown below.
Chart Editor Preview
The lower part of the chart editor shows a preview of the chart. This preview changes as you configure the chart.
Chart Editor Toolbar
The editor toolbar provides the following options:
- Open/Close Chart properties: Opens/closes the side nav to configure the chart, series and axis properties as explained in Advanced Chart Configuration.
- Chart type: This menu allows changing quickly the chart type. The icon corresponds to the currently selected type.
- Preview opens the chart preview in a new browser tab.
- Save saves the chart.
- Validate validates the chart.
The editor shows in the upper section the following fields:
- Query, to select a query from the existing queries of the application.
- Series (Columns), Categories (Rows) to define the dimensions of the chart. Each dimension appears as a chip in this field. Measures to define the measures of the chart. Each measure appears as a chip in this field.
Chart Editor Series, Categories, Measures
The series, categories and measures fields simplify the definition of the pivot query according to the select chart type:
- You can remove, reorder, and move chips within and across fields.
- Clicking a chip opens the configuration properties of the series, category or measure in the secondary side nav.
- When the chart requires a category, a series or a measure that is not defined, the associated fields displays an error.
- When a category, series or measure is defined but not used by the chart type, it appears in italic with a white background.
When a chart has multiple measures, a specific Measures chip appears in the series. It represents the position where the measures labels are inserted. This chip cannot be removed and has no properties, but may be moved anywhere in the series or categories.
Creating a Chart
To create a chart:
- Select Charts in the navigation drawer.
The Charts list opens. - Click on the Create new chart floating action button in the lower-right corner of the screen.
- In the New Chart dialog:
- Select the Query returning the data you want to base your chart on.
- Select a Chart Type. You will be able to change this chart type later.
- Enter a Label for the chart. This label appears to users.
- Enter a Name for the chart. This name is used to refer to this chart, for example from a dashboard.
- Click Create.
The chart editor opens.
- Define the Measures:
- In the Measures field, select an attribute from the query.
- Click the chip named after this attribute in the Measures field. + The properties side nav opens.
- Change the Aggregation type (Count, Sum, etc) used to compute the measure from the attribute.
- In the Display properties, configure the Format and the other properties of your measures.
- In the sidenav header, use the Rename button to change the name and label of this measure.
- Repeat the previous operations for all the measures that you want to define.
- Define the Categories:
- In the Categories (Rows) field, select an attribute from the query.
- Click the chip named after this attribute in the Categories (Rows) field.
The properties side nav opens. - In the Display properties, configure the Format and the other properties to display the values of your row.
- In the sidenav header, use the Rename button to change the name and label of this row.
- In the Subtotals section, define whether subtotals should be displayed for this category. The Pivot Table chart type provides more options to define how the subtotals are computed and displayed.
- In the Sorting section, define how the category values should be sorted:
- Sort by the current Dimension value, according to the Sort Order.
- Sort by a Measure value, according to the Sort Order. You must select the measure used to sort in the Measure path.
- Repeat the previous operations for all the categories that you want to define.
- Define the Series similarly to the categories, using the Series (Column) field.
- Click the Save button in the toolbar to save the query.
Advanced Chart Configuration
This section describes the advanced configuration options for the chart, which includes:
- Chart Configuration, including the name, label, documentation, display properties and parameters.
- Axes Configuration to define how axes appear and behave for Column, Bar, Line, Area or Combined charts.
- Series Configuration to configure the display properties of the series in Column, Bar, Line, Area, Combined and Donut charts.
Chart Configuration
To configure the chart:
- In the chart editor, select the Open chart properties toolbar button. The chart properties side nav opens on the Chart tab.
- In the sidenav header, use the Rename button to change the name and label of the chart.
- In the top section:
- Select a different Query and Chart Type if needed.
- Select a Required Role to access the chart. This role must be configured in the Semarchy xDM platform.
- In the Display properties section, parameterize the chart appearance:
- For all chart types:
- Define the position of the chart title using the Label Placement. Select Hidden to mask the title.
- Select Show Divider to add a thin line between this title and the visualization.
- Select Enable drilldown to allow users to click on the chart’s shapes or values in order to to drilldown into the data behind the aggregated measures.This behavior may be overridden when the chart is used in a dashboard.
- For a number chart, configure the target indicator that appears below the metric.
- Use Show target as to define how this indicator should be computed (as a percentage, difference number, etc).
- Define a Target goal format for this number, and the colors for a positive or negative variation.
- For a pivot table chart, define the display properties:
- Define the rows and columns titles
- Define the background colors for the row/column headers and the table.
- Select whether you want to show the row and column totals, and define their background colors.
- Select whether you want to allow the expand/collapse menu option for this pivot table.
- For a category chart, that is a sunburst, treemap, column, bar, line, area, Combined, donut or gauge:
- Select the Palette used for this chart and the Shade/Color for this palette. If not specified, the palette defined at the application level used.
- For a sunburst chart, define:
- The visualization Size and the Hole Size, as a percentage of chart size.
- For a donut chart, define:
- The Startup angle for the segments.
- The visualization Size and the Hole Size, as well as the Spacing between the segment surfaces, as a percentage of chart size.
- For gauge chart, define:
- The Minimum value and Maximum values of the gauges.
- Optionally define a Target goal value.
- Use the Range maximum values type field to define how the Range 1/2 maximum values are expressed and set these values (as absolute values or percentage of the target goal or maximum value).
- Define the colors for the three ranges of the gauge.
- For all chart types:
- In the Filters section, optionally create multiple filters to use a subset of the data returned by the query.
- Click the Add Filter button.
The Add filter dialog opens. - Select a query Attribute to filter.
- Select an Operator.
- Select or enter one or multiple Values depending on the operator.
- Click Add
- Repeat the previous steps to create multiple filters. These filters are combined with an AND operator.
You can edit a filter by selecting it in the list and remove a filter using the Delete button.You can create similar filters on the dashboard charts, to additionally filter the data in the chart when is used in a dashboard. The dashboard chart filters apply on top of the filters defined on the chart itself.When filters are applied to the query in a chart, the query appears with a (filtered) suffix in the chart editor.
- Click the Add Filter button.
- In the Chart parameters section, select the attributes of the query that may be parameterized to filter the chart content. All the attributes used as dimensions are automatically parameters. When you use this chart, you can pass values to these parameters to filter the chart content.
For example, if a chart displays the sales for all the brands for all countries, you can pass a brand value to have it display, in a specific context, the sales for that brand for all countries. - In the Documentation section, edit the rich text describing the chart. If the documentation is configured, an information icon appears next to the chart title, to display the documentation text. The Markdown syntax is supported for this text.
Axes Configuration
For charts using an axis chart type (Column, Bar, Line, Area or Combined), you can configure the (horizontal) Category Axis and the (vertical) Value Axis.
To configure the axes:
- In the chart editor, select the Open chart properties toolbar button. The chart properties side nav opens.
- Select the Axes tab.
- In the Categories axis section:
- Define the Title that appears aside this axis, and unselect Hide title to make it visible.
- Check Hide label to hide the labels on this axis, and select Show grid to display vertical lines to delimit the categories.
- Define the Truncation length for large labels.
- Select Group Labels to merge adjacent categories with the same label.
- In the Value axis section (or in the Primary/Secondary Value Axis section for a combined chart):
- Define the Title of the axis, and whether you want the title, grid, and labels visible. Define the truncation for these labels.
- Define the Stacking method used for the series on this axis:
- Clustered: Show data from multiple data series in clusters of shapes (for example, clusters of horizontal or vertical bars).
- Stacked: Show data from multiple data series in stacked shapes (for example, horizontally or vertically stacked bars).
- Stacked 100%: Show the relative percentage of multiple data series in stacked bars or areas, where the total (cumulative) of the stacked bar or area always equals 100%.
- Optionally define explicit axis boundaries with a Min value and a Max value.
- Optionally define a fixed Interval between labels/grid lines along this axis, or a Minimum interval.If you do not define the interval explicitly, it is automatically computed based on the mix/max values, or the data point values. The minimum interval defines the lower limit for the computed interval.
- Define the Axis scale (Linear or Logarithmic) and Logarithmic base. Note that the logarithmic scale is more suitable when the values are distributed on a large range.
- Define a fixed Target goal that will be materialized as a dotted line on the axis to indicate the expected goal for the values. This line is drawn in the Target goal color.
Series Configuration
For charts supporting series (Column, Bar, Line, Area, Combined, Donut), you can configure how these series appear using the Series tab of the chart properties.
You can configure a default set of properties applied to all the series in the chart as well as exceptions for specific series.
To configure the series:
- In the chart editor, select the Open chart properties toolbar button. The chart properties side nav opens.
- Select the Series tab. In this tab:
- The Series dropdown lists all the series from the chart. When you select a series in this list, the property values displayed in the tab apply to this series only. A <Default> item in the Series dropdown list allows configuring the values applied by default to the series.
- When the <Default> dropdown is selected, click the Reset all series button to remove all series-specific configuration and have all series use the <Default> configuration.
- When a series is selected, click the Reset series button to remove the configuration for this series and have it use the <Default> configuration.
- In the Series dropdown list, select a specific series that you want to configure, or <Default>.
- If you are using a combined chart, configure the axis for this series in the Axes section:
- Value Axis defines whether values for this series should be on the primary or secondary axis.
- Chart type defines the type of chart to use for this series on this axis.
- If the selected chart supports it, configure how the Shapes appear:
- Point shape, Point size and Point filled configure how data points appear for example on a line chart.
- Line style, Line interpolation configure how lines are drawn for example line and combined charts.
- Line or border color, Fill color configure the fill and border colors of the shapes and lines in charts.
- If the selected chart supports it, configure how Labels appear when you move your mouse over a point or shape representing a data point:
- Show data labels activates these labels on mouse over and Placement defines where the label appears relatively to the data point.
- Show series as and Show categories as define whether and how the series and categories values should be displayed, that is with or without their labels first.
- Show value adds the measure value to the label.
- Show percentage adds the percentage represented by the measure value in the series to the label.
- Show measure label adds the measure’s label before the value and percentage.
Managing Charts
Charts in the list support the following operations:
- Open a chart by clicking it in the list.
- Preview a selected chart. This opens the chart in a new browser tab.
- Copy a selected chart. When copying a chart, you are prompted for the name of the new chart.
- Rename a selected chart. Note that when renaming a chart, the incoming references to this chart are not automatically updated.
- Delete selected chart. This operation cannot be undone.
Dashboards
Introduction
A dashboard is a page that displays on multiple tabs existing charts.
A dashboard is composed of one or multiple tabs, each tab is composed of elements of the following types:
- Chart elements, pointing to existing charts.
- Text elements, containing rich text content.
- Slicer elements used to filter charts content in the dashboard.
Understanding Slicers
Slicers are used to filter the content of the charts in the dashboard.
Each slicer is linked to one or multiple charts via a chart parameter.
A slicer automatically lists all the values available for the parameters in the charts it filters. When the user selects one or multiple values in the slicer, the related charts are automatically filtered to display only the measures for these values.
You can design slicers to appear as elements within the dashboard tabs aside the charts, or to appear in a side panel that opens on demand. This second type of slicers is called Dashboard Slicers. Both slicer types behave the same way to filter the charts of the dashboard.
The Dashboard Editor
Dashboard Editor Overview
The dashboard editor appears as shown below.
Dashboard Layout
The dashboard editor displays the tabs that compose the dashboard, and for the selected tab, an outline of the elements (chart, text or slicer elements) that compose this tab.
Dashboard tabs use a simple layout mechanism for optimal rendering of the charts, texts, and slicers:
- Elements are disposed horizontally within a tab.
- Each element has a width expressed as a number of horizontal cells it occupies
- The dashboard has a total width that depends on the device displaying it:
- For a desktop/laptop: 12 cells
- For a tablet: 8 cells
- For a mobile phone: 4 cells
- Elements will automatically wrap on the next line depending on their width and the total width.
For example: If you define two 6-cells charts elements, they appear on a single line for a desktop, and on 2 lines for a mobile or a tablet. - If an element too wide for a given device, it occupies 100% of the available width.
For example, a 6-cells chart takes 100% of the width on a mobile phone device. - Elements also have a height defined in pixels. When the dashboard renders, all elements on a line take the height of the bigger element on their line.
In order to arrange elements on a dashboard tab, you simply have to order in the tab them and define their width and height properties.
Dashboard Editor Toolbar
The editor toolbar provides the following options:
- Open/Close Dashboard properties: Opens/closes the side nav to configure including the name, label, documentation, display properties and parameters.
- Preview opens the dashboard preview in a new browser tab.
- Save saves the dashboard.
- Validate validates the dashboard.
Creating a Dashboard
To create a dashboard:
- Select Dashboards in the navigation drawer.
The Dashboards list opens. - Click on the Create new dashboard floating action button in the lower-right corner of the screen.
- In the New Dashboard dialog:
- Enter a Label for the dashboard. This label appears to users.
- Enter a Name for the dashboard. This name is used to refer to this dashboard, for example from the application navigation.
- Click Create.
The dashboard is created with a first tab named Default Tab.
- Click the Open dashboard properties button in the editor toolbar.
The properties side nav opens. - Select the Required Role to access the application. This role must be configured in the Semarchy xDM platform.
- In the Display Properties, select the Icon used to represent this dashboard.
- In the Documentation section, edit the rich text describing the dashboard. If the documentation is configured, an information icon appears next to the dashboard title, to display the documentation text. The Markdown syntax is supported for this text.
You may now proceed and:
Add a Tab to a Dashboard
To create a new tab :
- Move your mouse cursor on the floating action button in the lower-right corner of the screen and then select the Tab action.
- In the New Tab dialog:
- Enter a Label for the tab.
- Enter a Name for the tab.
- Click Create.
This new tab is added to the dashboard.
To edit a tab:
- Click the Tab properties button on the tab.
The properties side nav opens. - Use the Copy, Move left, Move right and Delete buttons in the sidenav header to organize this tab.
- Use the Rename button to change the name and label of the tab.
- Select an Icon that may be displayed in the tab.
- Select in Display as whether the tab should display the label and/or the icon.
Add a Chart to a Dashboard Tab
To add a chart to a dashboard tab:
- Select the tab into which you want to add the chart.
- Move your mouse cursor on the floating action button in the lower-right corner of the screen and then select the Chart action.
- In the New Dashboard Chart dialog:
- Select an existing Chart from the list of charts.
- Enter a Label and Name for this dashboard chart.
- Click Create.
This new chart is added to the dashboard tab.
- Click the chart placeholder in the dashboard editor.
The properties side nav opens.- Use Move left and Move right to move this element in the tab.
- Use Expand and Reduce to change this element’s width.
- In the Filters section, optionally create multiple filters to use a subset of the data returned by the query.
- Click the Add Filter button.
The Add filter dialog opens. - Select a query Attribute to filter.
- Select an Operator.
- Select or enter one or multiple Values depending on the operator.
- Click Add
- Repeat the previous steps to create multiple filters. These filters are combined with an AND operator.The filters that you define on a dashboard chart apply on top of those defined in the chart configuration.
- Click the Add Filter button.
- In the Display Properties section:
- Define the Height in pixels for this element.
- Define the Label placement and whether to Show a Divider for between the label and the chart.
- Select Enable drilldown to allow users to click on the chart’s shapes or values in order to to drilldown into the data behind the aggregated measures. If this property is unset, the behavior defined in the selected chart applies.
- In the Documentation section, edit the rich text describing the chart. If the documentation is configured, an information icon appears next to the chart title, to display the documentation text. The Markdown syntax is supported for this text.
Add a Text Element to a Dashboard Tab
To add a text element to a dashboard tab:
- Select the tab into which you want to add the text element.
- Move your mouse cursor on the floating action button in the lower-right corner of the screen and then select the Text action.
- In the New Text dialog, enter a Name for this text element and then click Create.
This new text element is added to the dashboard tab. - Click the text element placeholder in the dashboard editor.
The properties side nav opens. - In the Content field, edit the text. The Markdown syntax is supported.
- Use Move left and Move right to move this element in the tab.
- Use Expand and Reduce to change this element’s width.
- In the Display Properties section:
- Define the Height in pixels for this element.
- Define the base Color for the text.
Add a Slicer to a Dashboard Tab
Slicers appear within the dashboard tabs to filter the data in the charts, based on a selection of values.
To add a slicer to a dashboard tab:
- Select the tab into which you want to add the slicer.
- Move your mouse cursor on the floating action button in the lower-right corner of the screen and then select the Slicer action.
- In the New Slicer dialog:
- Enter a Label and Name for this slicer.
- The Filtered chart field shows an expandable list of all charts and their parameters. Select for each chart that you want to filter the parameter this slicer applies to. Note that you can only select one parameter per chart.
- Click Create.
This new slicer is added to the dashboard tab.
- Click the slicer placeholder in the dashboard editor.
The properties side nav opens. - Use Move left and Move right to move this element in the tab.
- Use Expand and Reduce to change this element’s width.
- In the Display Properties section:
- Define the Height in pixels for this element.
- Define the Label placement and whether to Show a Divider for between the label and the slicer.
- In the Slicer Options section:
- Define a Sort Order for the values in the slicer.
- Select the Allow multiple selection option to have the slicer appear as a list of checkboxes. Otherwise, it appears as a list of radio buttons.
- Select the Display search field option to display a search field above the slicer values to search into these values.
- Select the Allow select all option to allow selecting/unselecting all values in this slicer.
- Select the Show items with no data option to show all the items in the slicer, including those that will show no data points in the charts. When this option is selected, two additional options are available to configure how these items appear in the slicer.
- Grey out items with no data makes these items less visible in the list by dimming their color.
- Show items with no data last automatically reorder the list of items to move all these items at the end of the list.
- In the Documentation section, edit the rich text describing the slicer. If the documentation is configured, an information icon appears next to the slicer title, to display the documentation text. The Markdown syntax is supported for this text.
Add Dashboard Slicers
Dashboard Slicers appear in the side nav of the dashboard to filter the data in the charts, based on a selection of values.
To add a dashboard slicer:
- Click the Open dashboard properties button in the editor toolbar.
The properties side nav opens. - Select the Slicers tab. This tab shows the list of dashboard slicers configured for this dashboard.
- Click the Add Dashboard Slicer button.
- In the New Slicer dialog:
- Enter a Label and Name for this slicer.
- The Filtered chart field shows an expandable list of all charts and their parameters. Select for each chart that you want to filter the parameter this slicer applies to. Note that you can only select one parameter per chart.
- Click Create.
This new slicer is added to the list in the Slicers tab in the properties side nav.In this list, use the drag button to reorder slicers, and the Delete button to delete them.
- Click the slicer in the Slicers tab to further edit its properties.
The properties side nav changes to show the slicer properties. - In the side nav header:
- Use Move up and Move down to position this slicer higher or lower in the list of slicers.
- Use the Rename button to change the name and label of the slicer.
- Use the Delete button to delete the slicer.
- In the Slicer Options section:
- Define a Sort Order for the values in the slicer.
- Select the Allow multiple selection option to have the slicer appear as a list of checkboxes. Otherwise, it appears as a list of radio buttons.
- Select the Display search field option to display a search field above the slicer values to search into these values.
- Select the Allow select all option to allow selecting/unselecting all values in this slicer.
- Select the Show items with no data option to show all the items in the slicer, including those that will show no data points in the charts. When this option is selected, two additional options are available to configure how these items appear in the slicer.
- Grey out items with no data makes these items less visible in the list by dimming their color.
- Show items with no data last automatically reorder the list of items to move all these items at the end of the list.
- In the Documentation section, edit the rich text describing the slicer. If the documentation is configured, an information icon appears next to the slicer title, to display the documentation text. The Markdown syntax is supported for this text.
- Use the Back button to return to the list of dashboard slicers.
Add Dashboard Parameters
You may add parameters to a dashboard to support passing values to this dashboard. These values are used similarly to slicer selections to filter the charts in this dashboard.
To configure dashboard parameters:
- Click the Open dashboard properties button in the editor toolbar.
The properties side nav opens. - Select the Parameters tab.
This tab shows the list of parameters configured for this dashboard. - Click the Add Parameter button.
The new parameter is added to the list. - Define the Parameter name.
- In the Filtered charts field, click the Edit button.
- The Filtered chart dialog shows an expandable list of all the charts and their parameters. Check, for each chart that you want to filter, the chart parameter this dashboard parameter applies to. Note that you can only select one parameter per chart.
- Click Apply.
Managing Dashboards
Dashboards in the list support the following operations:
- Open a dashboard by clicking it in the list.
- Preview a selected dashboard. This opens the dashboard in a new browser tab.
- Copy a selected dashboard. When copying a dashboard, you are prompted for the name of the new dashboard.
- Rename a selected dashboard. Note that when renaming a dashboard, the incoming references to this dashboard are not automatically updated.
- Delete selected dashboard. This operation cannot be undone.
Configuring Applications
Once the charts and dashboards are designed and tested using their preview feature, it is possible to use them:
- In dashboard applications, by configuring Application Navigation to open dashboards.
- In Semarchy applications using charts and dashboard embedding into forms, or application actions to open dashboards.
Application Navigation
You can configure the dashboard application and add navigation items in the left-hand navigation drawer to open existing dashboards.
To configure the Application Navigation:
- Select Application Configuration in the navigation drawer.
The application editor opens. - Select the Navigation tab in the editor.
This tab shows a list of Navigation Items, organized into Navigation Groups.
To add a navigation group:
- Move your mouse cursor on the floating action button in the lower-right corner of the screen and then select the Group action.
- Enter a Label for this group.
- Click Create.
This new group is added to the navigation. - In the properties side nav, select whether to Show a Divider for above the group label.
- Use Move up and Move down to move this group in the navigation.
To add a navigation item:
- Select the group into which you want to add the navigation item.
- Move your mouse cursor on the floating action button in the lower-right corner of the screen and then select the Navigation Item action.
- In the New Item dialog, select the Dashboard to open, and enter a Label for this navigation item.
- Click Create.
This navigation item is added to the group. - In the Display Properties section of the properties side nav, select the Icon, Icon Color and Label Color to use for this item.
- The Parameters section of the properties side nav lists the parameters available for the dashboard. Select the parameters that you want to set and provide a value for them.
- Use Move up and Move down to move this item in the navigation.
Using Dashboards in Semarchy Applications
Semarchy xDM supports embedding charts and dashboard in Semarchy Applications, using the following methods:
- Charts and Dashboard tabs can be embedded into Forms, possibly binding entity attribute values to chart and dashboard parameters.
- Dashboards can be open as embedded editors, using a dedicated application action.
Securing Applications
Dashboard applications can be secured to enable access only to specific roles.
To secure applications, you may configure a Required Role on applications, charts or dashboards:
- For an application, this role is required for a given user to open the application and see the application listed on the welcome page.
When no required role is defined, any user sees the application and can open it. - For a dashboard, this role is required for a user connected to the application to open this dashboard. Users without this role will not see this dashboard in the navigation drawer. This role is also required for users to view this dashboard embedded in a Semarchy xDM application in a form, or using an application action.
When no role is configured, any user connected to the application can see the dashboard. - For a chart, this role is required to see this chart within a dashboard. The chart is hidden from dashboards for users without this role. This role is also required for users to view this dashboard embedded in a Semarchy xDM form.
When no role is configured, any user connected to the application can see the chart.
Scripting Management
Dashboard application management tasks are exposed by the REST API.
Scripted Management Overview
The REST API exposes endpoints for Dashboard Application management such as create, delete, import, export and rename dashboard applications.
REST API Documentation
The REST API exposes its built-in documentation as a link in the Welcome page. In addition, this documentation is available for tools as an OpenAPI specification.
To Access the REST API Documentation:
- Log in to Semarchy xDM as a user with one of the Application Design, Application Management and Platform Administration platform privileges.
- Click the REST API link on the Welcome page.
- In the upper-right menu, select Dashboard Application Management.
The documentation exposes the endpoint description and provides request and response samples.
Appendix A: Using YAML
This section provides a reference of the YAML structure for the various objects that you manipulate in Semarchy xDM Dashboards.
Introduction to YAML
YAML is a data representation language used for the objects of Dashboard Builder.
This section gives a quick overview of the YAML language.
Comments
Comments are lines starting with a #
sign.
Object and properties
An object is represented in a <object type>:
form, with its properties listed on the following lines, with a 2 space indentation. Each property is represented in a <property key>: <property value>
form.
# Simple palette object
palette:
type: MD_COLORFUL
shade: '500'
Similarly, a child object is represented with a 2 space indentation after its parent object, with its own properties. A child object may have its own children, with 4 space indentation, and so on.
Arrays
Arrays are represented as <array name>:
, followed by their items on the next lines, with an indentation, and prefixed with a -
sign.
An empty array is indicated as a pair of square brackets []
.
# The navigationDrawer object in the application has a child object: Group.
# Group is which is an array of objects.
# Note the dashboardArguments arrays, which are empty.
navigationDrawer:
groups:
- label: Products
showDivider: true
items:
- dashboard: ProductDashboard
icon: 'images://mdi/label-outline.svg'
label: Brands
dashboardArguments: []
- dashboard: WIPDashboard
icon: 'images://mdi/people.svg'
label: Families (WIP)
dashboardArguments: []
- label: Customers
showDivider: true
items:
- dashboard: AccoundCreditMetrics
icon: 'images://mdi/account-card-details.svg'
label: Credit Metrics
dashboardArguments: []
Dashboard Builder YAML Reference
The Dashboard Metamodel Reference document describes the objects available in Dashboard Builder with their YAML properties.