Creates the
PmgCanvas object configured as a table of daily values of the month with graphic representation.
This preconfiguration can be activated when
creating a new Pmg object.
This preconfiguration is included in the
"/ Table" group.
This object contains embedded
PmgCanvas object named "
Dynamic". The content is filled in by the variable named "
values". The value of this variable is entered
in designer method GetData of this object. (The data in this method is emulated for testing purposes.)
In the parent
PmgCanvas object there are
variables
- Titles - column names of the table (names separated by semicolon)
- ColsWidth - widths of table columns (widths separated by semicolon)
- GraphColors - colors of graphic representation of values of each column (colors separated by semicolon)
- RowsHeight - row height (common value for all rows)
- Rows - the total number of rows (including the row with column names).
Additional configuration variables are located at the beginning of
context itself, or at the beginning of designer method. The following items can be set: Additional configuration variables of the parent
Pmg object are located at the beginning of the
context itself.
- nBorder - the width of table grid
- sTabBgColor - background color of table data area
- sTabBorderColor - table grid color
- sTabTitleColor - text color of column header
- sTabTitleBgColor - background color of column header
The first column is configured as static with each row representing day of the month. The recommended number of columns with values (except the 1st column) is 1 - 3. The number of columns in the table is defined by the
Titles variable. (Higher number of columns makes the graphic representation too complex.)
These configurators can be set before the preconfiguration is created:
The name of created object | Name (identifier) of the Pmg object. It is used for obtaining the Pmg object by the PmgObject.Items method.
This configurator sets the initial value of the Name property.
The maximum name length is 30 characters.
This is a system name, so it must contain only alphanumeric and must not contain any diacritics (i.e. national dependent characters), empty string, spaces and first character must not be a number. |
Table column names (separated by semicolon ;) | (Day;Water;Gas;Graph;) The first column (day of the month) and the last column (graphic representation of values) are static. All columns between the name of the first and last column are dynamic columns. Value of this configurator will be transmitted into the Titles variable. |
Table column width (separated by semicolon ;) | (40;100;100;*;) The * character represents the rest of the width of the Pmg object and is reserved for graphic representation of values. The number must be identical with the number of values defined in previous configurator. |
Maximum possible data value | The maximum possible value to be displayed in the table is defined in the valMax variable. This will represent 100% for the graphic representation of the table values. |
---|