ChartDirector Ver 3.1 (PHP Edition Edition)

Axis


The Axis class represents x and y axes in XY charts.

MethodInheritedDescription
setLabelStyle(Self)Set the font style used to for the axis labels.
setLabelFormat(Self)Set the format for the axis labels for axis labels that are numbers or dates.
setLabelGap(Self)Set the distance between the axis labels and the ticks on the axis.
setTitle(Self)Add a title to the axis.
setTitlePos(Self)Set the position of the axis title relative to the axis.
setColors(Self)Set the colors of the axis itself, axis label, axis title and axis ticks.
setTickLength(Self)Set the length of the axis ticks.
setTickLength2(Self)Set the length of the major and minor axis ticks.
setTickWidth(Self)Set the width of the axis ticks.
setTickColor(Self)Set the colors of the axis ticks.
setWidth(Self)Set the line width of the axis.
setMargin(Self)Reserve margins at the ends of the axis.
setIndent(Self)Specify if the axis should be "indented" or not.
setAutoScale(Self)Set the margins at the two ends of the axis during auto-scaling, and whether to start the axis from zero.
setRounding(Self)Control whether to round the ends of the axis to align with tick positions.
setTickDensity(Self)Set the density of the axis ticks.
setReverse(Self)Reverse the axis.
setLabels(Self)Set the text labels to be used on the axis.
setLabels2(Self)Set the numeric/date/time labels to be used on the axis.
setLinearScale(Self)Set the axis to use the given linear scale.
setLinearScale2(Self)Set the axis to use the given linear scale and the given labels.
setLinearScale3(Self)Set the axis to use linear auto-scale.
setLogScale(Self)Set the axis to use the given logarithmic scale.
setLogScale2(Self)Set the axis to use the given logarithmic scale and the given labels.
setLogScale3(Self)Set the axis to use logarithmic auto-scale.
setDateScale(Self)Set the axis to use the given date scale.
setDateScale2(Self)Set the axis to use the given date scale and the given labels.
setDateScale3(Self)Set the axis to use date auto-scale.
addLabel(Self)Add an extra label on the axis.
addMark(Self)Add a mark line to the chart.
addZone(Self)Add a zone to the chart.
getMinValue(Self)Get the lower bound of the axis.
getMaxValue(Self)Get the upper bound of the axis.
getTicks(Self)Get the values of the ticks.

ovAvg(Self)Replace each element of the ArrayMath object by its moving average.expAvg(Self)Replace each element of the ArrayMath object by its exponential average.movMed(Self)Replace each element of the ArrayMath object by its moving median.movPercentile(Self)Replace each element of the ArrayMath object by its moving percentile.movMax(Self)Replace each element of the ArrayMath object by its moving maximum.movMin(Self)Replace each element of the ArrayMath object by its moving minimum.movStdDev(Self)Replace each element of the ArrayMath object by its moving standard deviation.movCorr(Self)Replace each element of the ArrayMath object by the moving correlation with another array or with itself.lowess(Self)Fit a curve through the data points in the ArrayMath object using the LOWESS algorithm.lowess2(Self)Fit a curve through the data points in the ArrayMath object using the LOWESS algorithm, where the spacing of the data points is supplied by the given array.result(Self)Get the content of the ArrayMath object as a normal array to be used in other ChartDirector API.max(Self)Get the maximum value of the elements of the ArrayMath object.min(Self)Get the minimum value of the elements of the ArrayMath object.avg(Self)Get the average value of the elements of the ArrayMath object.sum(Self)Get the total value of the elements of the ArrayMath object.med(Self)Get the median value of the elements of the ArrayMath object.percentile(Self)Get the required percentile value of the elements of the ArrayMath object.maxIndex(Self)Get the index of the maximum value element of the ArrayMath object.minIndex(Self)Get the index of the minimum value element of the ArrayMath object.
(1059, '1999-03-01', '371', '635', '722');