| Applying science to business management |
  
table
Format: table( data, vlegend, hlegend,
style, title, vlabel, hlabel, tbmargin, lrmargin )
Arguments: [any] data One or two dimensional
array of data to display as a table
[any] vlegend Optional vertical legend;
default = 1..rows
[any] hlegend Optional horizontal legend;
default = 1..columns
(int) style Optional style declaration;
default = TS_DEFSTYLE
(text) title Optional title; default = null
(text) vlabel Optional vertical label;
default = null
(text) hlabel Optional horizontal label;
default = null
(real) tbmargin Optional top and bottom margins within
each cell in units of a character height; default = 1/4
(real) lrmargin Optional left and right margin within
each cell in units of an average character width;
default = 2
Returns: null
Description: Table creates a window displaying the
supplied data. The following example illustrates where on the
table each argument's data is displayed.
data=[[1,2,3],[4,5,6],[7,8,9]]
vlegend=[1,2,3]
hlegend=["A","B","C"]
table(data,vlegend,hlegend,TS_DEFSTYLE,"Title",
"V Label","H Label")
If, in the same example, the TS_LABEL style is used, vlabel
is displayed above the first column and hlabel is not
displayed at all.
table(data,vlegend,hlegend,TS_DEFSTYLE+TS_LABEL,"Title",
"V Label")
The style arguments for the table, graph, and graph3
primitives are all constructed by adding together a series of
pre-defined constants. These constants turn particular attributes
on or off. For example, the default table style, TS_DEFSTYLE, is
defined as TS_VRULE + TS_HRULE + TS_GRAY + TS_UNIFORM. Each of
these style constants and all others that can be used are
described in the following table:
Table Styles:
TS_VRULE Vertical rules (lines) between columns
TS_HRULE Horizontal rules between rows
TS_GRAY Gray background in legend column and row
TS_LEFT Left justify cell contents (default is right justify)
TS_UNIFORM Use uniform cell widths (default is to use smallest
width possible for each column)
TS_AUTO Automatically reconstruct the table if any nodes in
the system change. Without this option you can explicitly update
a graph by clicking the Recalculate button.
TS_LABEL Place vlabel above the first column as opposed
to left of the entire table. Hlabel is not displayed.
See Also: tableform,
graph, graph3
|