Skip to content

CAxis

CAxis

CAxis is an auxiliary graphics library class for working with the coordinate axes.

Description

The CAxis class receives and stores various parameters of the coordinate axes. The class implements the ability to auto scale the coordinate axes dynamically.

Declaration

class CAxis

Title

#include <Graphics\Axis.mqh>

Class methods

MethodDescription
AutoScaleGet/set the auto-scaling flag
MinGet/set the minimum axis value
MaxGet/set the maximum axis value
StepGet the step value by axis
NameGet/set the axis name
ColorGet/set the axis color
ValuesSizeGet/set the size of the axis numbers
ValuesWidthGet/set the maximum displayed length of the axis numbers
ValuesFormatGet/set the format of the axis numbers
ValuesDateTimeModeGet the format of converting a date into a string.
ValuesFunctionFormatGet the pointer to the function defining the format of displaying values on the axis.
ValuesFunctionFormatCBDataGet the pointer to the object that may contain additional data on converting axis values.
NameSizeGet/set the font size of the axis name
ZeroLeverGet/set the “zero lever” value
DefaultStepGet/set the initial step value by axis
MaxLabelsGet/set the maximum amount of numbers on the axis
MinGraceGet/set the “tolerance” value for the axis minimum
MaxGraceGet/set the “tolerance” value for the axis maximum
SelectAxisScaleAuto scale the axis.
Last updated on