I installed the BAM including the out-of-the-box dashboards. Now I would like to add a new chart to the BAM dashboards that helps me see if there is any correlation between the duration of my process and the value of a custom business indicator (KPI). How can I add a scatter plot chart to display such data? [BAM version 2.0.x, 3.0.x, 3.1.x, 3.2.x, 3.3.x, 3.4.x, 3.5.x]
An example could be creating a scatter plot chart that shows if there is any correlation between the distance (in km) of travel being requested (on the x axis), and the duration (in hours) of a travel booking process (on the y axis). By looking at this chart it will be possible to identify if there is a correlation between the two values, that is, if the duration of the process increases/decreases as the distance increases/decreases.

In order to add a scatter plot chart to the BAM Performance Metrics dashboard, follow these steps:
-
Create a new Screen to host the chart. Let's call it BAMScatterPlot (can be any ID).
-
Enable the first (available) custom chart by setting the conf column to true for the additionalChart1Enabled entry in the BAM_DefaultFeatures catalog.
-
Change the conf column for the additionalChart1Label entry in the BAM_DefaultFeatures catalog to, for example, Duration Scatter Plot (can be any title).
-
Include the BAMScatterPlot Screen in the BAM – Dashboards Screen inside the template area ADDITIONAL_CHART1 (or the first available template area).
-
Open the BAMScatterPlot Screen and inherit the $filter variable from the BAM — Dashboards Screen.
-
Add a Line/Bar Chart component and give it the HTML ID SCATTERPLOT (can be any ID).
-
Style the chart as desired by configuring the component properties. In order to match the other BAM charts' size, select 320px as Width and 320px as Height.
-
Configure the chart data property as follows:
BAM_GenerateScatterPlotChart($filter, 'Distance')
This uses the BAM_GenerateScatterPlotChart function that is available in the BAM dashboards out-of-the-box export. This function generates the necessary chart data based on the two provided inputs: the $filter variable, which represents the user selection, and the name of the KPI to be investigated for correlation.
Click to download the BAMScatterPlotRecipe.awexport containing a custom scatter plot chart Screen.