<legend>
a legend for a chart

JavaScript: lz.legend
extends <drawview> » <view> » <node> » lz.Eventable »
[Warning] Warning
This component is of Beta quality and is subject to change.
simple legend class

Attributes

Name Type (tag) Type (js) Default Category
borderColor color color 0x000000 read/write
  Allow to set the color line from the legend tag
borderWidth number Number 1 read/write
  Allow to set the line width from the legend tag
chart expression any null read/write
  Takes the relationship with the chart
chartClassName string String null read/write
   
direction string String vertical read/write
  Indicates how the legend items will be displayed, default: vertical
fillColor color color 0xFFFFFF read/write
  Allow to set the fill color from the legend tag
legendborder boolean boolean true read/write
  Indicates if legend box will have a border, default: true
legendFont string String serif read/write
  Indicates the Font will be used in the legend item text
legendFontcolor color color 0x000000 read/write
  Indicates the Font color wiil be used in the legend item text, default: black
legendFontsize size size 10 read/write
  Indicates the Font size wiil be used in the legend item text, default: 10px
position string String right read/write
  Indicates where the legend box will be positioned, default: right
styleBorder string String null read/write
  Indicates the style will be applied tho the border legend box

Methods

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Name Description
onitemmouseclick event that allows custom action for mouse click event
onitemmousedown event that allows custom action for mouse down event
onitemmouseout event that allows custom action for mouse out event
onitemmouseover event that allows custom action for mouse over event
onitemmouseup event that allows custom action for mouse up event

Events inherited from <drawview>

oncontext

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy