|
|
Visits:
2969
(14 on line)
|
Last Update: Dec 24, 2003
|
|
|
|
| | |
| Description Inheritance Example Properties Methods |
| |
| Description |
The TGraphX5 object allows you to create spectacular graphics with APL+Win
using the GraphX software developed by MAI and the SoftwareFx ChartFX client server component
The Trial version of ChartFX can be downloaded from:
http://eu.softwarefx.com/SFXTrial/Trial_downloads.asp?ProductID=CfxClientServer |
| Description Inheritance Example Properties Methods |
| |
| Inheritance |
Inherits from: TFrame5 TObject5 |
| Description Inheritance Example Properties Methods |
| |
| Example |
| |
 |
| |
The above form is generated by the following APL+Win Objects code: |
CopyTGraphX5
aaa„?10 3˝1000
aaa[;1]„Ľ10
'ff'Świ'*Create' 'TForm5'('*caption' 'TGraphX5 Example')('sysmenu'1)('*size'350 650)
'ff'Świ'*.gr.Create' 'TGraphX5'('wherelc'0 0 '>>' '>>')('attach'1 2 3 4)
'ff'Świ'.gr.yfmt' 'I6'
'ff'Świ'.gr.plotdata'aaa
'ff'Świ'*Set'('ontop'1)'Show' 'SessionFocus'
'ff'Świ'.gr.ChangeType' 'Bar'
'ff'Świ'?.gr.barstyle'
Get or Set the bar style for Bar graphs
Syntax: 'obj'Świ'barstyle'styles
styles: a vector of styles chosen from:
1 Horizontal Bars
2 Stack Bars (requires non negative data)
4 Normalize to 100%(requires +2)
8 Different Colors on Single Series
Example:
'ff.gr'Świ'barstyle'1 2 4
'ff'Świ'.gr.barstyle'2
'ff'Świ'.gr.barstyle'2 8
'ff'Świ'.gr.threed'1
'ff'Świ'.gr.barstyle'2 4 8
'ff'Świ'.gr.barstyle'1 2 8
'ff'Świ'.gr.barstyle'1 8
'ff'Świ'.gr.values'1
'ff'Świ'.gr.values'0
'ff'Świ'.gr.ChangeType' 'Area'
'ff'Świ'.gr.title' 'Sample TGraphX5 Graph'
'ff'Świ'.gr.plaintitle'1
'ff'Świ'.gr.xlegend'(ś'C++' 'VB' 'APL+Win')
'ff'Świ'.gr.legend'(ś'January' 'February' 'March' 'April' 'May' 'June' 'July' 'August' 'September' 'October')
'ff'Świ'.gr.legendpos' 'right'
'ff'Świ'.gr.legendpos' 'bottom'
'ff'Świ'.gr.legendpos' 'left'
'ff'Świ'.gr.toolbar'1
Śerase'aaa'
|
| |
| Description Inheritance Example Properties Methods |
| |
| Properties |
| |
|
| barstyle |
Description: Get or Set the bar style for Bar graphs
Syntax: 'obj' Świ 'barstyle'styles
styles: a vector of styles chosen from:
1 Horizontal Bars
2 Stack Bars (requires non negative data)
4 Normalize to 100%(requires +2)
8 Different Colors on Single Series
Example:
'ff.gr' Świ 'barstyle'1 2 4 |
| class |
Description: Return current object class
Syntax: class„'obj' Świ 'class' |
| help |
Example:
0 0˝CopyTGraphX5
aaa„?10 3˝1000
aaa[;1]„Ľ10
0 0˝'ff' Świ '*Create' 'TForm5' ('*caption' 'TGraphX5 Example') ('sysmenu'1) ('*size'350 650)
0 0˝'ff' Świ '*.gr.Create' 'TGraphX5' ('wherelc'0 0 '>>' '>>') ('attach'1 2 3 4)
'ff' Świ '.gr.yfmt' 'I6'
'ff' Świ '.gr.plotdata'aaa
'ff' Świ '*Set' ('ontop'1) 'Show' 'SessionFocus'
'ff' Świ '.gr.ChangeType' 'Bar'
'ff' Świ '?.gr.barstyle'
'ff' Świ '.gr.barstyle'2
'ff' Świ '.gr.barstyle'2 8
'ff' Świ '.gr.threed'1
'ff' Świ '.gr.barstyle'2 4 8
'ff' Świ '.gr.barstyle'1 2 8
'ff' Świ '.gr.barstyle'1 8
'ff' Świ '.gr.values'1
'ff' Świ '.gr.values'0
'ff' Świ '.gr.ChangeType' 'Area'
'ff' Świ '.gr.title' 'Sample TGraphX5 Graph'
'ff' Świ '.gr.plaintitle'1
'ff' Świ '.gr.xlegend' (ś'C++' 'VB' 'APL+Win')
'ff' Świ '.gr.legend' (ś'January' 'February' 'March' 'April' 'May' 'June' 'July' 'August' 'September' 'October')
'ff' Świ '.gr.legendpos' 'right'
'ff' Świ '.gr.legendpos' 'bottom'
'ff' Świ '.gr.legendpos' 'left'
'ff' Świ '.gr.toolbar'1
Śerase'aaa' |
| legend |
Description: Specify where the legend should be placed
Syntax: 'obj' Świ 'legendpos'position
position: one of 'top' 'left' 'bottom' 'right' 'float' 'none'
Example:
'ff.gr' Świ 'legendpos' 'right' |
| legendhelp |
Description: Get or Set the curve legend help
Syntax: 'obj' Świ 'legendhelp'cmat
cmat: character matrix of curve legend texts
Example:
'ff.gr' Świ 'legendhelp' (ś'1st month' '2nd month' '3rd month' '4th month') |
| legendpos |
Description: Specify where the legend should be placed
Syntax: 'obj' Świ 'legendpos'position
position: one of 'top' 'left' 'bottom' 'right' 'float' 'none'
Example:
'ff.gr' Świ 'legendpos' 'right' |
| plaintitle |
Description: Get or Set various graph styles
Syntax: 'obj' Świ 'property'boolean
property: 'toolbar' 'threed' 'values' or 'plaintitle'
boolean: a boolean scalar
Example:
'ff.gr' Świ 'threed'1 |
| plotdata |
Description: Get or Set the matrix of data to be plotted
Syntax: 'obj' Świ 'plotdata'datamatrix
datamatrix: a matrix where each row is a serie of points and each column a category
or a vector of numeric values to draw one curve or one set of bars
Example:
'ff.gr' Świ 'plotdata' (ś(Ľ10) (1 3 2 5 4 7 8 6 10 9) (10?10)) |
| title |
Description: Get or Set the graph title
Syntax: 'obj' Świ 'title'title
title: character vector containing graph title
Example:
'ff.gr' Świ 'title' 'Programming Languages' |
| xlegend |
Description: Get or Set the X-axis legends
Syntax: 'obj' Świ 'xlegend'cmat
cmat: character matrix of X-axis legend texts
Example:
'ff.gr' Świ 'xlegendhelp' (ś'C++' 'VB' 'APL+Win') |
| xlegendhelp |
Description: Get or Set the x-axis legend help
Syntax: 'obj' Świ 'xlegendhelp'cmat
cmat: character matrix of x-axis legend help texts
Example:
'ff.gr' Świ 'xlegendhelp' (ś'The worst language' 'A better language' 'The best language') |
| yfmt |
Description: Get or Set the y-axis label format
Syntax: 'obj' Świ 'yfmt'fmtstring
fmtstring: an APL+Win valid Format String
Example:
'ff.gr' Świ 'yfmt' 'I6' |
|
| Description Inheritance Example Properties Methods |
| |
| Methods |
| |
|
| ChangeType |
Description: Changes the graph type
Syntax: 'obj' Świ 'ChangeType'newtype
newtype: one of 'Area' 'Bar' 'FloatBar' 'Line' 'Pie' 'Scatter' 'Surface'
Example:
'ff.gr' Świ 'ChangeType' 'Surface' |
| New |
Description: Create a new instance of TGraphX5
Example:
'obj' Świ '*Create' 'TGraphX5'
|
| PlotRows |
Description: Calculates the 'plot_rows' property of a GraphX object
based on the 'plot_data' argument matrix
This method is used internally by the <plotdata> property
Syntax: plot_rows„'obj' Świ 'PlotRows'plot_data
plot_data: a valid plotdata property (see plotdata property above)
plot_rows: the calculated plotrows property (see notes below)
Notes:
The property plot_rows is an Nx4 numeric matrix specifying sub arrays of plot_data for graphing.
It provides a way to pass both x and y coordinates in plot_data when using Scatter graphs
and offers some flexibility when specifying data for categorical charts.
Each row of plot_rows specifies a sub array of plot_data.
Columns of plot_rows have the following meaning: (All indices are specified in index origin 1.)
1 = index of first row in plot_data in sub array
2 = number of successive rows of plot_data in sub array
3 = index of first column in plot_data in sub array
4 = number of successive columns of plot_data in sub array
When plot_rows is specified and the graph class is Scatter, each sub array of plot_data
is graphed against the first row of plot_data, in the matching sub array columns.
Note: If plot_xdata is also specified, plot_xdata takes precedence and plot_rows is ignored.
Example:
'ff.gr' Świ 'PlotRows' (ś(Ľ10) (1 3 2 5 4 7 8 6 10 9) (10?10)) |
|
| Description Inheritance Example Properties Methods |
| |
|