"areaSizes"

Defines the size relations of the trend areas to each other.

Synopsis

setValue(string shape, "areaSizes", dyn_int sizes);

getValue(string shape, "areaSizes", dyn_int sizes);

shape.areaSizes(dyn_int sizes);

Parameter

Parameter Description
shape Object name
sizes Sizes for the separate trend areas.

Description

Defines the size relations of the trend areas to each other (width or height depending on whether the trend areas are arranged horizontally or vertically). This does not change the entire size of the trend widget, but only the relations of the trend areas to each other. I.e. if the trend has three areas and

  • the first area should be twice as large as the second area

    and

  • the second area should be twice as large as the third area

the relations can be defined, for example, as follows: (200, 100, 50), (8, 4, 2), (100, 50, 25) etc. The relation of the areas to each other remains always the same, namely: 4:2:1

Example

main()
{
  dyn_int sizes;
  sizes = makeDynInt(200, 100); 
  TREND1.areaSizes(sizes);
  DebugN(sizes);
}
Figure 1. A Trend with two Trend Areas and a Relation of 200:100

Assignment

Trend