XYChartSetAxis
- set the names of X and Y axes in exploration scatter charts

Exploration / Indicators
(AmiBroker 5.60)


SYNTAX XYChartSetAxis( ''chartname'', ''x-axis name'', ''y-axis name'', style = 0 )
RETURNS NOTHING
FUNCTION The function sets the name of X and Y axis for the Exploration scatter (XY) charts.

Since version 6.0 it allows to define chart style. Supported styles are styleLine, styleDots, styleHistogram, styleThick and combinations of those styles.

EXAMPLE chartname="example";

XYChartSetAxis(chartname, "[x]", "[sinx/x]", styleLine | styleDots ); // bar style
for( x = -10; x < 10; x += 0.2 )
{
   y = sin(x ) / x;
   XYChartAddPoint( chartname, "", x, y, colorGreen, colorRed );
}

XYChartAddPoint( chartname, "", Null, Null ); // add a NULL point to begin new line

for( x = -10; x < 10; x += 0.2 )
{
   y = sin( 2 * x ) / x;
   XYChartAddPoint( chartname, "", x, y, colorOrange, colorBlue );
}
SEE ALSO XYChartAddPoint() function

References:

The XYChartSetAxis function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.