Name
rectangularchart —
A rectangular chart
Description
![[Warning]](images/warning.png) |
Warning |
| This component is Beta quality and is subject to revision |
class that provides all common features for the rectangular charts like line, bar and column
Details
Properties (13)
-
dataSeriesLeaf
-
<attribute name="dataSeriesLeaf" type="expression" value="${null}" />
private var dataSeriesLeaf : Object;
-
defaultmaxx
-
<attribute name="defaultmaxx" type="number" value="100" />
public var defaultmaxx : Number;
-
defaultmaxy
-
<attribute name="defaultmaxy" type="number" value="100" />
public var defaultmaxy : Number;
-
defaultminx
-
<attribute name="defaultminx" type="number" value="0" />
public var defaultminx : Number;
-
defaultminy
-
<attribute name="defaultminy" type="number" value="0" />
public var defaultminy : Number;
-
gridlinecolor
-
<attribute name="gridlinecolor" type="color" value="0x000000" />
private var gridlinecolor : color;
-
horizontalGridBands
-
<attribute name="horizontalGridBands" type="boolean" value="false" />
public var horizontalGridBands : boolean;
Determines if the horizontal grid lines are going to be used
-
horizontalGridLines
-
<attribute name="horizontalGridLines" type="boolean" value="false" />
public var horizontalGridLines : boolean;
-
maxx
-
<attribute name="maxx" type="number" value="100" />
public var maxx : Number;
The maximum virtual value to be rendered in the 'x' axis
-
maxy
-
<attribute name="maxy" type="number" value="100" />
public var maxy : Number;
The maximum virtual value to be rendered in the 'y' axis
-
minx
-
<attribute name="minx" type="number" value="0" />
public var minx : Number;
The minimum virtual value to be rendered in the 'x' axis
-
miny
-
<attribute name="miny" type="number" value="0" />
public var miny : Number;
The minimum virtual value to be rendered in the 'y' axis
-
verticalGridLines
-
<attribute name="verticalGridLines" type="boolean" value="false" />
public var verticalGridLines : boolean;
Determines if the vertical grid lines are going to be used
Methods (27)
-
adjustAxesToLayout()
-
<method name="adjustAxesToLayout" />
private function adjustAxesToLayout();
-
adjustOptimizeMinMax()
-
<method name="adjustOptimizeMinMax" />
private function adjustOptimizeMinMax();
-
adjustPlotAreaToLayout()
-
<method name="adjustPlotAreaToLayout" />
private function adjustPlotAreaToLayout();
Adjust the plot area to the dimensions of the chart and the
axes. This method overrides chart.adjustPlotAreaToLayout()
-
buildCategoricalMinMax()
-
<method name="buildCategoricalMinMax" args="pAxis, pOrientation" />
private function buildCategoricalMinMax(pAxis, pOrientation);
-
buildLinearMinMax()
-
<method name="buildLinearMinMax" args="pAxis, pOrientation" />
private function buildLinearMinMax(pAxis, pOrientation);
-
calcDefaultMinMax()
-
<method name="calcDefaultMinMax" />
private function calcDefaultMinMax();
Set the min and max to show all data
-
changeBound()
-
<method name="changeBound" args="newminx, newminy, newmaxx, newmaxy, animated, undoable" />
public function changeBound(newminx : Number, newminy : Number, newmaxx : Number, newmaxy : Number, animated : Number, undoable : Number);
change the virtual boundary of the rectangular chart
-
customizeMinMax()
-
<method name="customizeMinMax" args="pMinX, pMaxX, pMinY, pMaxY" />
public function customizeMinMax(pMinX : Number, pMaxX : Number, pMinY : Number, pMaxY : Number);
Allows to customize the minimum and maxium data value.
-
dataload()
-
<method name="dataload" />
private function dataload();
-
findMax()
-
<method name="findMax" args="arr" />
private function findMax(arr);
-
findMin()
-
<method name="findMin" args="arr" />
private function findMin(arr);
-
getAxisOverDimension()
-
<method name="getAxisOverDimension" args="axis" />
private function getAxisOverDimension(axis);
-
render()
-
public function render();
-
renderAxis()
-
<method name="renderAxis" />
private function renderAxis();
-
renderGridLines()
-
<method name="renderGridLines" />
private function renderGridLines();
-
renderHorizontalGridBands()
-
<method name="renderHorizontalGridBands" />
public function renderHorizontalGridBands();
-
renderHorizontalGridlines()
-
<method name="renderHorizontalGridlines" />
public function renderHorizontalGridlines();
-
renderRect()
-
<method name="renderRect" args="dv, tlx, tly, brx, bry, fillcolor, fillopacity" />
public function renderRect(dv, tlx, tly, brx, bry, fillcolor, fillopacity);
-
renderValueLine()
-
<method name="renderValueLine" />
private function renderValueLine();
-
renderValuePoint()
-
<method name="renderValuePoint" />
public function renderValuePoint();
-
renderValueRegion()
-
<method name="renderValueRegion" />
private function renderValueRegion();
Render the value regions defined in the chart
-
renderVerticalGridlines()
-
<method name="renderVerticalGridlines" />
public function renderVerticalGridlines();
-
setHAxisMax()
-
<method name="setHAxisMax" />
private function setHAxisMax();
-
setHAxisMin()
-
<method name="setHAxisMin" />
private function setHAxisMin();
-
setVAxisMax()
-
<method name="setVAxisMax" />
private function setVAxisMax();
-
setVAxisMin()
-
<method name="setVAxisMin" />
private function setVAxisMin();
-
undo()
-
<method name="undo" args="duration" />
public function undo(duration);
undo the last chart zoom interaction to the one previous
LZX Synopsis
<class name="
lz.rectangularchart" extends="
lz.chart
">
<attribute name="
dataSeriesLeaf
" type="
expression" value="
${null}" />
<attribute name="
defaultmaxx
" type="
number" value="
100" />
<attribute name="
defaultmaxy
" type="
number" value="
100" />
<attribute name="
defaultminx
" type="
number" value="
0" />
<attribute name="
defaultminy
" type="
number" value="
0" />
<attribute name="
gridlinecolor
" type="
color" value="
0x000000" />
<attribute name="
maxx
" type="
number" value="
100" />
<attribute name="
maxy
" type="
number" value="
100" />
<attribute name="
minx
" type="
number" value="
0" />
<attribute name="
miny
" type="
number" value="
0" />
<method name="
changeBound
" args="
newminx,
newminy,
newmaxx,
newmaxy,
animated,
undoable" />
<method name="
findMax
" args="
arr" />
<method name="
findMin
" args="
arr" />
<method name="
renderRect
" args="
dv,
tlx,
tly,
brx,
bry,
fillcolor,
fillopacity" />
<method name="
undo
" args="
duration" />
</class>
JavaScript Synopsis
public
lz.rectangularchart extends
lz.chart
{
public var
maxx
:
Number;
public var
maxy
:
Number;
public var
minx
:
Number;
public var
miny
:
Number;
prototype public function
changeBound
(
newminx : Number,
newminy : Number,
newmaxx : Number,
newmaxy : Number,
animated : Number,
undoable : Number);
prototype public function
customizeMinMax
(
pMinX : Number,
pMaxX : Number,
pMinY : Number,
pMaxY : Number);
prototype private function
findMax
(
arr);
prototype private function
findMin
(
arr);
prototype public function
render
();
prototype public function
renderRect
(
dv,
tlx,
tly,
brx,
bry,
fillcolor,
fillopacity);
prototype public function
undo
(
duration);
}