The General chart is highly configurable. It is a simple column chart by default. However, by changing the Chart Type property, you can change it into many other formats. For example, all of the charts below are variants of the same chart (the last one uses different data). The Chart Type setting is only one of the things you can configure. Throughout this guide you’ll see examples of the features you can configure including secondary axis, data series, titles, legends and 3D (the last chart below demonstrates several features used together). This highly configurable nature is what makes the General chart one of the most useful charts in MooD.
Adding a General chart to a model
Adding a General chart is similar to adding any other panel. You place it onto a model, and then use its flip side and the ribbon to configure it.
Task 1 To add a General chart to a model:
- Open the model that you want to add the chart to.
- On the Home tab, in the Insert group, click Graphs.
A gallery opens.
In the gallery, in the Graphs section, click General Chart.
As you move cursor over the model, Business Architect shows you that a General chart will be created.
- Click to add the General chart to the model. A General chart is added on its flip side.
By default, the panel (chart) is pinned to the model’s subject element.
- If you want to use a different subject element, pin the panel to that element. The subject element must be on the same model as the chart.
- Next to Information shown, click click to select.
A Select Content dialog box for the subject element is displayed.
- Select the content from the subject element that will be the basis for the chart. For example:
As soon as you click something in the Select Content dialog box, it selects it and closes the dialog. On the Content tab, the Information shown setting shows the selected content, and the icon indicates that the Select fields property is the remaining property that must be set to create a working chart.
Setting Information shown to a query
If you set Information shown to a query, an Edit this query link is added to the
Content tab, and the Inputs tab will include fields for any query variables required.
The Results tab lists the elements that will be included in the chart, as shown next:
Manually adding elements
This task described here lets Business Architect automatically add the elements associated with the selected content. However, you can add elements manually. On the Select Content dialog box, click I want to add elements manually.
When this is selected, the Content tab changes to include an Add and remove elements from this panel link. This displays the Results tab with an Add an element button on it.
- If required, use the Assign drop-down to change the chart’s format. The choices are:
- Elements. This is the default. The X axis plots elements and the Y axis plots field values. This type of chart can plot multiple data series against the elements on the X axis.
- Pivot. The X axis plots fields and the Y axis plots the values of those fields. In this type of chart, the data series are items on the X axis.
- Historical. For elements configured to store historical values (a change history), this type of chart plots dates/times on the X axis and field values on the Y axis. When selected, a Configure settings link is added immediately below. Use this to set the date range for the historical data.
- Scatter. Both the X and Y axis plot values. The density and location of plotted points can indicate the relationship (or lack thereof) between two items.
- Aggregation. Content from an Aggregation matrix. This is set automatically when Information shown is set to an Aggregation matrix.
The remaining steps assume you are adding the default Elements format.
- Click Select fields.
The Select Content dialog box is displayed.
Use the Select Content dialog box to search for and select the content you want to use as data series in the chart.
As you choose content for a series, a new empty series field is added.
- When you have added the data series required, click OK to close the Select Content
You can return and edit the selected fields or add additional data series at any time.
- On the Content tab, click OK.
The panel flips to display the General chart on the model.
At any time you can configure it further.
Note: If you flip the general chart and no data is displayed on the model, it is usually because there are unset variables on the chart’s Inputs tab. Even if your chart is driven by session variables, if you want to configure it further, you need to set inputs so that you can see and verify the results of your changes.
If you'd like to read more on this matter, please click on the attachment.