ChartDirector Ver 3.0 (Perl 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.