Name

legend — a legend for a chart

Synopsis

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

Description

[Warning] Warning
This component is of Beta quality and is subject to change.
simple legend class

Superclass Chain

node (LzNode) » view (LzView) » drawview » legend

Known Subclasses

Details

Properties (17)

borderColor
<attribute name="borderColor" type="color" value="0x000000" />
public var borderColor : color;
Allow to set the color line from the legend tag
borderWidth
<attribute name="borderWidth" type="number" value="1" />
public var borderWidth : Number;
Allow to set the line width from the legend tag
bottommargin
<attribute name="bottommargin" type="number" value="5" />
private var bottommargin : Number;
chart
<attribute name="chart" type="expression" value="${null}" />
public var chart : Object;
Takes the relationship with the chart
chartClassName
<attribute name="chartClassName" type="string" value="${null}" />
public var chartClassName : String;
direction
<attribute name="direction" type="string" value="vertical" />
public var direction : String;
Indicates how the legend items will be displayed, default: vertical
fillColor
<attribute name="fillColor" type="color" value="0xFFFFFF" />
public var fillColor : color;
Allow to set the fill color from the legend tag
leftmargin
<attribute name="leftmargin" type="number" value="5" />
private var leftmargin : Number;
legendborder
<attribute name="legendborder" type="boolean" value="true" />
public var legendborder : boolean;
Indicates if legend box will have a border, default: true
legendFont
<attribute name="legendFont" type="string" value="serif" />
public var legendFont : String;
Indicates the Font will be used in the legend item text
legendFontcolor
<attribute name="legendFontcolor" type="color" value="0x000000" />
public var legendFontcolor : color;
Indicates the Font color wiil be used in the legend item text, default: black
legendFontsize
<attribute name="legendFontsize" type="size" value="10" />
public var legendFontsize : size;
Indicates the Font size wiil be used in the legend item text, default: 10px
position
<attribute name="position" type="string" value="right" />
public var position : String;
Indicates where the legend box will be positioned, default: right
rightmargin
<attribute name="rightmargin" type="number" value="5" />
private var rightmargin : Number;
styleBorder
<attribute name="styleBorder" type="string" value="null" />
public var styleBorder : String;
Indicates the style will be applied tho the border legend box
topmargin
<attribute name="topmargin" type="number" value="5" />
private var topmargin : Number;
verticalgap
<attribute name="verticalgap" type="number" value="4" />
private var verticalgap : Number;

Methods (2)

border()
<method name="border" />
private function border();
getChartInstance()
<method name="getChartInstance" />
private function getChartInstance();

LZX Synopsis

<class name="lz.legend" extends=" lz.drawview ">
  <attribute name=" borderColor " type="color" value="0x000000" />
  <attribute name=" borderWidth " type="number" value="1" />
  <attribute name=" bottommargin " type="number" value="5" />
  <attribute name=" chart " type="expression" value="${null}" />
  <attribute name=" chartClassName " type="string" value="${null}" />
  <attribute name=" direction " type="string" value="vertical" />
  <attribute name=" fillColor " type="color" value="0xFFFFFF" />
  <attribute name=" leftmargin " type="number" value="5" />
  <attribute name=" legendborder " type="boolean" value="true" />
  <attribute name=" legendFont " type="string" value="serif" />
  <attribute name=" legendFontcolor " type="color" value="0x000000" />
  <attribute name=" legendFontsize " type="size" value="10" />
  <attribute name=" position " type="string" value="right" />
  <attribute name=" rightmargin " type="number" value="5" />
  <attribute name=" styleBorder " type="string" value="null" />
  <attribute name=" topmargin " type="number" value="5" />
  <attribute name=" verticalgap " type="number" value="4" />
  <method name=" border " />
  <method name=" getChartInstance " />
</class>

JavaScript Synopsis

public lz.legend extends  lz.drawview  {
  public var borderColor  : color;
  public var borderWidth  : Number;
  private var bottommargin  : Number;
  public var chart  : Object;
  public var chartClassName  : String;
  public var direction  : String;
  public var fillColor  : color;
  private var leftmargin  : Number;
  public var legendborder  : boolean;
  public var legendFont  : String;
  public var legendFontcolor  : color;
  public var legendFontsize  : size;
  public var position  : String;
  private var rightmargin  : Number;
  public var styleBorder  : String;
  private var topmargin  : Number;
  private var verticalgap  : Number;
  prototype private function border ();
  prototype private function getChartInstance ();
}