|
Variable/Array
|
Description
|
|
footer
|
Use this
variable to get or set chart footer.
Example:
|
str = chart.footer
chart.footer str & " new text"
|
|
|
header
|
Use this
variable to get or set chart header.
Example:
|
str = chart.header
chart.header str & " new text"
|
|
|
arrDataColor(index)=color
|
Use this array
element to set data series color.
index –
data series number (starting from 1).
Data series
color is presented in a format "AAAAAA" (without "#"
symbol).
Note:
data series color can be set/modified if two or more data series
are used to build the chart. If only one data series is used,
series color is not taken into account while building the
chart.
Example:
|
chart.arrDataColor(2) = "FFFFFF"
|
|
|
arrDataColor(index)
|
Use this array
element to get data series color.
index –
data series number (starting from 1).
Example:
|
color = chart.arrDataColor(2)
color = mid(color,1,4)
chart.arrDataColor(2) = color &
"FF"
|
|
|
chrt_array("appearance")("cscroll")
|
Use this array
element to enable/disable chart scrolling or get chart scrolling
state.
Value true enables chart scrolling,
false disables it.
Example:
|
chart.chrt_array("appearance")("cscroll") = true
|
|
|
numRecordsToShow
|
Use this
variable to get or set max number of bars to show on the chart
screen.
Example:
|
chart.numRecordsToShow = 10
|
|
|
strLabel
|
Use this
variable to set label field or get label field name.
Example:
|
chart.strLabel = "field1"
|
|
|
Define appearance of Bars/Columns chart
|
|
stacked
|
Allows building
stacked chart. Value true enables stacked chart,
false disables it.
Example:
Note:
two or more data series must be selected to built stacked
chart.
|
|
var_2d
|
Allows
building 2D/3D chart. Value true enables 2D chart, false
- 3D chart.
Example
(building 3D chart):
|
|
bar
|
Defines the
chart type. Value true enables Bars chart, false
- Columns chart.
Example
(building Columns chart):
|
|
Define appearance of Line chart
|
|
type_line
|
Defines the line type. Value "line" enables Normal line type,
"spline" - Spline type,
"step_line" - Step
type.
Example
(building Line chart with Spline line type):
|
chart.type_line = "spline"
|
|
|
Define appearance of Area chart
|
|
stacked
|
Allows building
stacked chart. Value true enables stacked chart,
false disables it.
Example:
Note:
two or more data series must be selected to built stacked
chart.
|
|
Define appearance
of Pie/Doughnut chart
|
|
pie
|
Defines the chart type. Value true enables Pie chart, false - Doughnut chart.
Example
(building Pie chart):
|
|
Define appearance
of Accumulation
chart
|
|
ftype
|
Defines the
chart form. Value "0" enables Flat form, "1" - Cone form, "2"
- Pyramid form.
Example
(building Cone chart):
|
|
inver
|
Inverts the chart
image. Value true
enables inversion, false -
disables it.
Example
(building inverted accumulation chart):
|
|
Define appearance
of Bubble
chart
|
|
var_2d
|
Allows
building 2D/3D chart. Value true enables 2D chart, false
- 3D chart.
Example
(building 3D chart):
|
|
oppos
|
Defines the
chart transparency. Variable can take the value between "0" and
"1".
Example
(building half transparent chart):
|
|
Define appearance
of Gauge
chart
|
|
type_gauge
orientation
|
Define the chart type.
Building Circle chart:
|
chart.type_gauge = "circular"
chart.orientation = ""
|
Horizontal chart:
|
chart.type_gauge = "linear"
chart.orientation = "horizontal"
|
Vertical
chart:
|
chart.type_gauge = "linear"
chart.orientation = "vertical"
|
|
|
Define appearance of
financial
OHLC/Candlestick chart
|
|
ohcl_type
|
Defines the
chart type.
Building OHLC chart:
Candlestick chart:
|
chart.ohcl_type = "candle"
|
|