CT Chart arrays

4D - Documentation   Français   English   German   4D Chart, Command Theme List   4D Chart, Command Alphabetical List   Back   Previous   Next

version 1


CT Chart arrays (area; type; size; categoryArray; seriesArray; valuesArray) Number

ParameterTypeDescription
areaLongint4D Chart area
typeIntegerType of graph (see codes below)
sizeIntegerOption for initial size of graph
1 = Variable
2 = Relative to window (Auto-Variable)
3 = Relative to graph (Auto-Document)
categoryArrayArrayArray of categories
seriesArrayArrayArray of series
valuesArrayArrayArray of values
Function resultNumberObject ID number

Description

CT Chart arrays creates a graph based on the specified arrays and returns the graph's Object ID. This command can be used to create either a two-dimensional or three-dimensional graph.

The following table lists the codes for the type parameter.

CodeChart Type
1Area
2Column
3 Picture
4Line
5Scatter
6Pie
7Polar
82D XY
1003D Column
1013D Line
1023D Area
1033D Surface
1043D Triangle
1053D Spike

The size parameter determines how much space the graph fills when it is generated and how the graph size changes when you resize the window:

If you pass 1 (size Variable), the graph will fill the 4D chart area or the window. It will keep this size until you modify it using the handles.

If you pass 2 (size Relative to the window), the graph will fill the 4D chart area or the external window. If you later change the size of the window, the graph will adapt automatically. However, once you modify the size of the graph using the handles, this change will not take place anymore.

If you pass 3 (size Relative to the document), the graph will adapt to the dimensions of the page that you selected in the Page Setup dialog. It will keep this size until you modify the graph size using the handles.

The categoryArray parameter contains the X-axis categories.

seriesArray contains the series. In a two-dimensional graph, the series is displayed on the Category axis. In a three-dimensional graph, the series is displayed on the Series axis.

valuesArray is a on-edimensional array that contains all the values to be graphed on the Values axis. valuesArray must be filled in so that there is a value for each element of the categoryArray and seriesArray. That is, if there are n categories and m series, there will be n*m elements in valuesArray.

The following illustration shows the order in which valuesArray should be filled. n represents the total number of categories. m represents the total number of series.

For example, consider the following data and resulting Values array:

SchoolYearStudentsaValues
(Categories)(Series)(Values)
Sunnyoaks19901000aValues{1}:=1000
Sunnyoaks19921250aValues{2}:=600
Sunnyoaks1994 800aValues{3}:=1250
Valley1990 600aValues{4}:=975
Valley 1992 975aValues{5}:=800
Valley19941100aValues{6}:=1100

See Also

CT Chart data, CT Chart selection.


4D - Documentation   Français   English   German   4D Chart, Command Theme List   4D Chart, Command Alphabetical List   Back   Previous   Next