Name
horizontalaxis —
a horizontal axis for a chart
Description
![[Warning]](images/warning.png) |
Warning |
| This component is of Beta quality and is subject to change. |
Represents the X-axis on the rectangular chart extends from Axis class
Details
Properties (2)
-
datacolumn
-
<attribute name="datacolumn" type="string" value="x" />
private var datacolumn : String;
-
labelLenght
-
<attribute name="labelLenght" type="number" value="0" />
private var labelLenght : Number;
Methods (11)
-
getAxisLength()
-
<method name="getAxisLength" />
private function getAxisLength();
Get the length of the axis in pixels.
-
getPixelDistance()
-
<method name="getPixelDistance" args="pInput" />
private function getPixelDistance(pInput : Number);
Method to return a pixel position given graph data
-
init()
-
-
renderAxis()
-
<method name="renderAxis" />
private function renderAxis();
Render the horizontal axis line
-
renderTick()
-
<method name="renderTick" />
private function renderTick();
-
renderTickMark()
-
<method name="renderTickMark" args="pOffset, pPos, pStyle" />
private function renderTickMark(pOffset : Number, pPos : Number, pStyle : expression);
-
renderTitle()
-
<method name="renderTitle" />
private function renderTitle();
-
reposLabels()
-
<method name="reposLabels" args="pMarks" />
private function reposLabels(pMarks);
Check label location and change placement to avoid labels
overlaping
-
setLabelPos()
-
<method name="setLabelPos" args="pLabel, pOffset, pTW, pTH, pPos" />
private function setLabelPos(pLabel, pOffset, pTW, pTH, pPos);
-
setRightMargin()
-
<method name="setRightMargin" />
private function setRightMargin();
Set the max length of the rightMargin.
-
setScaleAndOffset()
-
<method name="setScaleAndOffset" />
private function setScaleAndOffset();
setter for scale and offset
LZX Synopsis
<class name="
lz.horizontalaxis" extends="">
<attribute name="
datacolumn
" type="
string" value="
x" />
<attribute name="
labelLenght
" type="
number" value="
0" />
<method name="
setLabelPos
" args="
pLabel,
pOffset,
pTW,
pTH,
pPos" />
</class>
JavaScript Synopsis
public
lz.horizontalaxis extends {
prototype public function
init
();
prototype private function
renderTickMark
(
pOffset : Number,
pPos : Number,
pStyle : expression);
prototype private function
setLabelPos
(
pLabel,
pOffset,
pTW,
pTH,
pPos);
}