Packagecom.amcharts.stock
Classpublic class LegendSettings
InheritanceLegendSettings Inheritance flash.events.EventDispatcher

Legend settings. Will be applied to all legends.

If a property has no default value and it is not defined, default styles and properties of StockLegend will be used.

You can set legend-specific properties and styles directly on StockLegend only if a property doesn't have default value. Note, property set here is of a higher priority.



Public Properties
 PropertyDefined by
  align : String
Alignment of legend entries.
LegendSettings
  horizontalGap : Number
Horizontal space between legend items, in pixels.
LegendSettings
  labelText : String
The text which will be displayed in the legend.
LegendSettings
  marginBottom : Number
Space below the last row of the legend, in pixels.
LegendSettings
  marginTop : Number
Space above the first row of the legend, in pixels.
LegendSettings
  markerBorderColor : Number
Marker border color.
LegendSettings
  markerBorderThickness : Number
Thickness of the legend border.
LegendSettings
  markerDisabledColor : Number
The color of the disabled marker (when the graph is hidden).
LegendSettings
  markerLabelGap : Number
Space between legend marker and legend text, in pixels.
LegendSettings
  markerSize : Number
Size of the legend marker (key).
LegendSettings
  markerType : String
Shape of the legend marker (key).
LegendSettings
  negativeValueColor : Number
Color of negative values.
LegendSettings
  numberFormatter : NumberFormatter
An instance of mx.formatters.NumberFormatter.
LegendSettings
  percentFormatter : NumberFormatter
An instance of mx.formatters.NumberFormatter.
LegendSettings
  positiveValueColor : Number
Color of positive values.
LegendSettings
  reversedOrder : Number
Specifies whether legend entries should be placed in reversed order.
LegendSettings
  rollOverColor : Number
Legend item text color on roll-over.
LegendSettings
  rollOverGraphAlpha : Number
When you roll-over the legend entry, all other graphs can reduce their opacity, so that the graph you rolled-over would be distinguished.
LegendSettings
  switchable : Boolean
Whether showing/hiding of graphs by clicking on the legend marker is enabled or not.
LegendSettings
  switchColor : Number
Legend switch color.
LegendSettings
  switchType : String
Legend switch type (in case the legend is switchable).
LegendSettings
  textClickEnabled : Boolean
Specifies whether the legend text is clickable or not.
LegendSettings
  useKeyColorForLabels : Boolean
Specifies if legend labels should be use same color as corresponding keys.
LegendSettings
  usePositiveNegativeOnPercentsOnly : Boolean
Specifies if positiveValueColor and negativeValueColor should only be applied for percent values.
LegendSettings
  valueAlign : String
Alignment of the value text.
LegendSettings
  valueTextComparing : String
The text which will be displayed in the value portion of the legend when graph is comparable and at least one dataSet is selected for comparing.
LegendSettings
  valueTextRegular : String
The text which will be displayed in the value portion of the legend.
LegendSettings
  valueWidth : Number
Width of the value text.
LegendSettings
  verticalGap : Number
Vertical space between legend items, in pixels.
LegendSettings
Public Methods
 MethodDefined by
  
Constructor.
LegendSettings
Property detail
alignproperty
align:String  [read-write]

Alignment of legend entries.

Implementation
    public function get align():String
    public function set align(value:String):void
horizontalGapproperty 
horizontalGap:Number  [read-write]

Horizontal space between legend items, in pixels.

Implementation
    public function get horizontalGap():Number
    public function set horizontalGap(value:Number):void
labelTextproperty 
labelText:String  [read-write]

The text which will be displayed in the legend. Tag [[title]] will be replaced with the title of the graph.

Implementation
    public function get labelText():String
    public function set labelText(value:String):void
marginBottomproperty 
marginBottom:Number  [read-write]

Space below the last row of the legend, in pixels.

The default value is 0.

Implementation
    public function get marginBottom():Number
    public function set marginBottom(value:Number):void
marginTopproperty 
marginTop:Number  [read-write]

Space above the first row of the legend, in pixels.

The default value is 0.

Implementation
    public function get marginTop():Number
    public function set marginTop(value:Number):void
markerBorderColorproperty 
markerBorderColor:Number  [read-write]

Marker border color.

Implementation
    public function get markerBorderColor():Number
    public function set markerBorderColor(value:Number):void
markerBorderThicknessproperty 
markerBorderThickness:Number  [read-write]

Thickness of the legend border.

Implementation
    public function get markerBorderThickness():Number
    public function set markerBorderThickness(value:Number):void
markerDisabledColorproperty 
markerDisabledColor:Number  [read-write]

The color of the disabled marker (when the graph is hidden).

Implementation
    public function get markerDisabledColor():Number
    public function set markerDisabledColor(value:Number):void
markerLabelGapproperty 
markerLabelGap:Number  [read-write]

Space between legend marker and legend text, in pixels.

Implementation
    public function get markerLabelGap():Number
    public function set markerLabelGap(value:Number):void
markerSizeproperty 
markerSize:Number  [read-write]

Size of the legend marker (key).

Implementation
    public function get markerSize():Number
    public function set markerSize(value:Number):void
markerTypeproperty 
markerType:String  [read-write]

Shape of the legend marker (key).

Implementation
    public function get markerType():String
    public function set markerType(value:String):void
negativeValueColorproperty 
negativeValueColor:Number  [read-write]

Color of negative values.

The default value is 0xCC0000.

Implementation
    public function get negativeValueColor():Number
    public function set negativeValueColor(value:Number):void
numberFormatterproperty 
numberFormatter:NumberFormatter  [read-write]

An instance of mx.formatters.NumberFormatter. The control use this class to format the numbers.

Implementation
    public function get numberFormatter():NumberFormatter
    public function set numberFormatter(value:NumberFormatter):void
percentFormatterproperty 
percentFormatter:NumberFormatter  [read-write]

An instance of mx.formatters.NumberFormatter. The control use this class to format the percent numbers.

Implementation
    public function get percentFormatter():NumberFormatter
    public function set percentFormatter(value:NumberFormatter):void
positiveValueColorproperty 
positiveValueColor:Number  [read-write]

Color of positive values.

The default value is 0x00CC00.

Implementation
    public function get positiveValueColor():Number
    public function set positiveValueColor(value:Number):void
reversedOrderproperty 
reversedOrder:Number  [read-write]

Specifies whether legend entries should be placed in reversed order.

Implementation
    public function get reversedOrder():Number
    public function set reversedOrder(value:Number):void
rollOverColorproperty 
rollOverColor:Number  [read-write]

Legend item text color on roll-over.

Implementation
    public function get rollOverColor():Number
    public function set rollOverColor(value:Number):void
rollOverGraphAlphaproperty 
rollOverGraphAlpha:Number  [read-write]

When you roll-over the legend entry, all other graphs can reduce their opacity, so that the graph you rolled-over would be distinguished. This property specifies the opacity of the graphs.

Implementation
    public function get rollOverGraphAlpha():Number
    public function set rollOverGraphAlpha(value:Number):void
switchableproperty 
switchable:Boolean  [read-write]

Whether showing/hiding of graphs by clicking on the legend marker is enabled or not.

Implementation
    public function get switchable():Boolean
    public function set switchable(value:Boolean):void
switchColorproperty 
switchColor:Number  [read-write]

Legend switch color.

Implementation
    public function get switchColor():Number
    public function set switchColor(value:Number):void
switchTypeproperty 
switchType:String  [read-write]

Legend switch type (in case the legend is switchable).

Implementation
    public function get switchType():String
    public function set switchType(value:String):void
textClickEnabledproperty 
textClickEnabled:Boolean  [read-write]

Specifies whether the legend text is clickable or not. Clicking on legend text can show/hide value balloons if they are enabled.

Implementation
    public function get textClickEnabled():Boolean
    public function set textClickEnabled(value:Boolean):void
useKeyColorForLabelsproperty 
useKeyColorForLabels:Boolean  [read-write]

Specifies if legend labels should be use same color as corresponding keys.

Implementation
    public function get useKeyColorForLabels():Boolean
    public function set useKeyColorForLabels(value:Boolean):void
usePositiveNegativeOnPercentsOnlyproperty 
usePositiveNegativeOnPercentsOnly:Boolean  [read-write]

Specifies if positiveValueColor and negativeValueColor should only be applied for percent values.

The default value is true.

Implementation
    public function get usePositiveNegativeOnPercentsOnly():Boolean
    public function set usePositiveNegativeOnPercentsOnly(value:Boolean):void
valueAlignproperty 
valueAlign:String  [read-write]

Alignment of the value text.

Implementation
    public function get valueAlign():String
    public function set valueAlign(value:String):void
valueTextComparingproperty 
valueTextComparing:String  [read-write]

The text which will be displayed in the value portion of the legend when graph is comparable and at least one dataSet is selected for comparing. You can use tags like [[value]], [[open]], [[high]], [[low]], [[close]], [[percents]], [[description]].

Implementation
    public function get valueTextComparing():String
    public function set valueTextComparing(value:String):void
valueTextRegularproperty 
valueTextRegular:String  [read-write]

The text which will be displayed in the value portion of the legend. You can use tags like [[value]], [[open]], [[high]], [[low]], [[close]], [[percents]], [[description]].

Implementation
    public function get valueTextRegular():String
    public function set valueTextRegular(value:String):void
valueWidthproperty 
valueWidth:Number  [read-write]

Width of the value text. Increase this value if your values do not fit in the allocated space.

Implementation
    public function get valueWidth():Number
    public function set valueWidth(value:Number):void
verticalGapproperty 
verticalGap:Number  [read-write]

Vertical space between legend items, in pixels.

Implementation
    public function get verticalGap():Number
    public function set verticalGap(value:Number):void
Constructor detail
LegendSettings()constructor
public function LegendSettings()

Constructor.