<rectangularchart>
A rectangular chart

JavaScript: lz.rectangularchart
extends <chart> » <basecomponent> » <view> » <node> » lz.Eventable »
[Warning] 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

Attributes

Name Type (tag) Type (js) Default Category
defaultmaxx number Number 100 read/write
   
defaultmaxy number Number 100 read/write
   
defaultminx number Number 0 read/write
   
defaultminy number Number 0 read/write
   
horizontalGridBands boolean boolean false read/write
  Determines if the horizontal grid lines are going to be used
horizontalGridLines boolean boolean false read/write
   
maxx number Number 100 read/write
  The maximum virtual value to be rendered in the 'x' axis
maxy number Number 100 read/write
  The maximum virtual value to be rendered in the 'y' axis
minx number Number 0 read/write
  The minimum virtual value to be rendered in the 'x' axis
miny number Number 0 read/write
  The minimum virtual value to be rendered in the 'y' axis
verticalGridLines boolean boolean false read/write
  Determines if the vertical grid lines are going to be used

Methods

changeBound()
rectangularchart.changeBound(newminx : Number, newminy : Number, newmaxx : Number, newmaxy : Number, animated : Number, undoable : Number);
change the virtual boundary of the rectangular chart
Parameter Name Type Description
newminx Number the new min x of the boundary
newminy Number the new min y of the boundary
newmaxx Number the new max x of the boundary
newmaxy Number the new max y of the boundary
animated Number the animation duration in milliseconds. 0 for no animation
undoable Number deterimine if the action can be undo

customizeMinMax()
rectangularchart.customizeMinMax(pMinX : Number, pMaxX : Number, pMinY : Number, pMaxY : Number);
Allows to customize the minimum and maxium data value.
Parameter Name Type Description
pMinX Number the new minimum value in 'x' of the chart.
pMaxX Number the new maximum value in 'x' of the chart.
pMinY Number the new minimum value in 'y' of the chart.
pMaxY Number the new maximum value in 'y' of the chart.

render()
rectangularchart.render();

renderHorizontalGridBands()
rectangularchart.renderHorizontalGridBands();

renderHorizontalGridlines()
rectangularchart.renderHorizontalGridlines();

renderRect()
rectangularchart.renderRect(dv, tlx, tly, brx, bry, fillcolor, fillopacity);
Parameter Name Type Description
dv    
tlx    
tly    
brx    
bry    
fillcolor    
fillopacity    

renderValuePoint()
rectangularchart.renderValuePoint();

renderVerticalGridlines()
rectangularchart.renderVerticalGridlines();

undo()
rectangularchart.undo(duration);
undo the last chart zoom interaction to the one previous
Parameter Name Type Description
duration    

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Name Description
onRenderStart  
onRenderStop  

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy