Basic Concepts
Before discussing the implementation, some basic concepts to consider:
Legends and Labels in Charts
Looking at a simple line chart, the terms Legends and Labels can be defined:
Legends and labels can have the same information content, the difference is the
location. You can only have labels in line charts and parametric simulation tasks, legends
appear in all chart types except table charts.
Items That Can Be Included in a Customization
When you customize legends or labels, you can use the following entities:
The availability of the different entities depends on the type of chart:
- Line

- Bar

- Gauge

- (Table
-
there are no options for this type of chart) - "PST" Parametric Simulation Task (parametric sweep)
| Item | Icon | Code | Available in |
|---|---|---|---|
| The plotted variable | variableID | $variableID | |
| The unit of the plotted variable | unit | $unit | |
| The path of the component of the plotted variable | componentID | $componentID | |
| The assessment name of the simulation | assessmentID | $assessmentID | |
| The simulation name | simulationID | $simulationID | |
| List of computed parameters and their values | parameters | $parameters | "PST" |
- You can enter free text before, in-between, and after the items.
- For line charts and parametric simulation tasks (parameter sweeps), you can
customize both legends and labels, the possible items are the same for both legends
and labels.
Tip: This means that you can divide some information between the legends and the labels, making the text strings shorter without loosing any information in the chart. - For bar charts, the displayed variables are already grouped by assessments, so that entity is not available for the legend.
- The "code" items are not case-sensitive, that is, you can use
$unitas well as$UNITand$Unitetc.
Levels of Customization and Priority Rules
You have in practice four levels of customization:
- No user-defined customization, that is, you use the default setup in the app.
- General customization by the preferences setup. You can see this as a user-defined
customization of the setup in the app. It
applies for all charts/legends/labels that are not modified by any of the below
customizations.Note: This customization is user-specific and stored locally.
- Chart-specifc customization. For each individual chart, you can customize the
legends/labels in that chart. If present, it overrides the customizations above, but
if a legend or label is individually customized as below, that customization overrides
the chart customization.Note: This customization is chart-specific. It is stored in the corresponding study template and is inherited to items created from the study template.
- Legend/label specific customization. You can customize each legend/label pair
individually, that is, you can edit the legend formatting; the label formatting
mirrors that one. Such customization, if present, overrides all customizations
above.Note: This customization is chart-specific. It is stored in the corresponding study template and is inherited to items created from the study template.