Name

horizontalaxis — a horizontal axis for a chart

Synopsis

LZX: horizontalaxis
JavaScript: lz.horizontalaxis
Type: Class
Access: public
Topic: Charting And Graphing.Common
Declared in: lps/components/charts/common/horizontalaxis.lzx

Description

[Warning] Warning
This component is of Beta quality and is subject to change.
Represents the X-axis on the rectangular chart extends from Axis class

Superclass Chain

basescrollbar.axis » horizontalaxis

Known Subclasses

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()
<method name="init" />
public function init();
Init method
renderAxis()
<method name="renderAxis" />
private function renderAxis();
Render the horizontal axis line
renderTick()
<method name="renderTick" />
private function renderTick();
Render tickmarks
renderTickMark()
<method name="renderTickMark" args="pOffset, pPos, pStyle" />
private function renderTickMark(pOffset : Number, pPos : Number, pStyle : expression);
Render a tick mark
renderTitle()
<method name="renderTitle" />
private function renderTitle();
Render axis title
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);
Set label position
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=" getAxisLength " />
  <method name=" getPixelDistance " args="pInput" />
  <method name=" init " />
  <method name=" renderAxis " />
  <method name=" renderTick " />
  <method name=" renderTickMark " args="pOffset, pPos, pStyle" />
  <method name=" renderTitle " />
  <method name=" reposLabels " args="pMarks" />
  <method name=" setLabelPos " args="pLabel, pOffset, pTW, pTH, pPos" />
  <method name=" setRightMargin " />
  <method name=" setScaleAndOffset " />
</class>

JavaScript Synopsis

public lz.horizontalaxis extends  {
  private var datacolumn  : String;
  private var labelLenght  : Number;
  prototype private function getAxisLength ();
  prototype private function getPixelDistance (pInput : Number);
  prototype public function init ();
  prototype private function renderAxis ();
  prototype private function renderTick ();
  prototype private function renderTickMark (pOffset : Number, pPos : Number, pStyle : expression);
  prototype private function renderTitle ();
  prototype private function reposLabels (pMarks);
  prototype private function setLabelPos (pLabel, pOffset, pTW, pTH, pPos);
  prototype private function setRightMargin ();
  prototype private function setScaleAndOffset ();
}