AnyLogic
Expand
Font size

Charts’ scale types

AnyLogic supports different types of controlling graphical scales of the charts. Most of the charts have the following possible settings for the scale type:

  • Auto
  • Fixed
  • 100%

To set a scale for a chart

  1. Select the chart in the graphical editor or in the  Projects view.
  2. Open the Scale section of the chart’s Properties and choose the required scale type from the corresponding drop-down list (Scale, Vertical scale or Horizontal scale, depends on the chart type, see the table below).
  3. In case you choose Fixed scale type, specify the scale maximum and if required, minimum, in To and From boxes correspondingly.

Charts with history (Time Plot, Time Stack Chart and Time Color Chart) allow defining a time window (the time horizon displayed on the chart) instead.

The following table describes these types particularly for chart. Please note that in Pie Chart and in both histograms Histogram and Histogram 2D scaling is not applicable at all.

Chart Auto Fixed 100%
Bar Chart (Scale) The scale’s maximum is set to the historical maximum throughout all data items. The scale’s maximum is statically specified by the user; the bars are truncated when they exceed it. The scale’s maximum is set to the current total of all data items (100%).
Stack Chart (Scale) The scale’s maximum is set to the historical maximum of simultaneous total of all data items — not to the local maximum within the displayed time window. The scale’s maximum is statically specified by the user; if the total exceeds the specified maximum, the bars are truncated. At each time moment the current total of all data items (100%) is taken as the scale maximum, so the chart will always occupy the full space. Clearly, the value scale will be different at different times.
Plot (Horizontal scale & Vertical scale) The X and Y scale’s minimum and maximum are set to the corresponding historical minimums and maximum of all data items. The scale’s maximum is statically specified by the user; if the value exceeds the specified minimum or maximum, the lines are not drawn. This scale type is not applicable.
Time Plot (Vertical scale) The scale’s minimum and maximum are set to the historical minimums and maximums of all data items — not to the local minimum and maximum within the time window. The scale’s maximum is statically specified by the user; if the value exceeds the specified minimum or maximum, the lines are not drawn. This scale type is not applicable.
Time Stack Chart (Vertical scale) The scale’s maximum is set to the historical maximum of simultaneous total of all data items – not to the local maximum within the displayed time window. The scale’s maximum is statically specified by the user; if the total exceeds the specified maximum the bars are truncated. At each time moment the current total of all data items (100%) is taken as the scale maximum, so the chart will always occupy the full space. Clearly, the value scale will be different at different times.
How can we improve this article?