Packagecom.amcharts.stock
Classpublic class StockLegend
InheritanceStockLegend Inheritance AmLegend Inheritance mx.core.UIComponent

StockLegend class. Extends AmLegend with some additional properties.



Public Properties
 PropertyDefined by
 InheritedadjustWidth : Boolean
If adjustWidth is true, the legend will srink so that it would take only space needed for all the entries.
AmLegend
 InheriteddataProvider : AmChart
Data provider of the legend is the chart object.
AmLegend
 InheritedlabelText : String
The text which will be displayed in the legend.
AmLegend
 InheritednumberFormatter : NumberFormatter
An instance of mx.formatters.NumberFormatter.
AmLegend
 InheritedpercentFormatter : NumberFormatter
An instance of mx.formatters.NumberFormatter.
AmLegend
 InheritedtextClickEnabled : Boolean
Specifies whether the legend text is clickable or not.
AmLegend
 InheriteduseMarkerColorForLabels : Boolean
Specifies if legend labels should be use same color as corresponding markers.
AmLegend
 InheritedusePositiveNegativeOnPercentsOnly : Boolean
If positiveValueColor and negativeValueColor styles are defined, legend value changes it's color depending on the value.
AmLegend
 InheritedvalueFunction : Function
You can set custom function which will format your value text using this property
AmLegend
 InheritedvalueText : String
The text which will be displayed in the value portion of the legend.
AmLegend
  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.
StockLegend
  valueTextRegular : String
The text which will be displayed in the value portion of the legend.
StockLegend
Public Methods
 MethodDefined by
  
StockLegend
 Inherited
setActualSize(w:Number, h:Number):void
AmLegend
Events
 EventSummaryDefined by
 Inherited Dispatched when user clicks on a legend item label.AmLegend
 Inherited Dispatched when user clicks on a legend item marker (and the switchable is set to "false").AmLegend
 Inherited Dispatched when user clicks on a legend item marker and hides corresponding object.AmLegend
 Inherited Dispatched when user rolls-out of the legend item label (or whole item, if switchable is set to false).AmLegend
 Inherited Dispatched when user rolls-out of the legend item marker.AmLegend
 Inherited Dispatched when user rolls-over the legend item label (or whole item, if switchable is set to false).AmLegend
 Inherited Dispatched when user rolls-over the legend item marker.AmLegend
 Inherited Dispatched when user clicks on a legend item marker and shows corresponding object.AmLegend
Styles
 StyleDescriptionDefined by
 Inherited Type: String   CSS Inheritance: no
Alignment of legend entries.
AmLegend
 Inherited Type: Number   CSS Inheritance: no
Background opacity.
AmLegend
 Inherited Type: uint   Format: Color   CSS Inheritance: no
Background color.
AmLegend
 Inherited Type: Number   CSS Inheritance: no
Border opacity.
AmLegend
 Inherited Type: uint   Format: Color   CSS Inheritance: no
Border color.
AmLegend
 Inherited Type: uint   Format: Color   CSS Inheritance: yes
Color of text in the component, including the component label.
AmLegend
 Inherited Type: uint   Format: Color   CSS Inheritance: yes
Color of text in the component if it is disabled.
AmLegend
 Inherited Type: String   CSS Inheritance: yes
Sets the antiAliasType property of internal TextFields.
AmLegend
 Inherited Type: String   CSS Inheritance: yes
Name of the font to use.
AmLegend
 Inherited Type: String   CSS Inheritance: yes
Sets the gridFitType property of internal TextFields that represent text in Flex controls.
AmLegend
 Inherited Type: Number   CSS Inheritance: yes
Sets the sharpness property of internal TextFields that represent text in Flex controls.
AmLegend
 Inherited Type: Number   Format: Length   CSS Inheritance: yes
Height of the text, in pixels.
AmLegend
 Inherited Type: String   CSS Inheritance: yes
Determines whether the text is italic font.
AmLegend
 Inherited Type: Number   CSS Inheritance: yes
Sets the thickness property of internal TextFields that represent text in Flex controls.
AmLegend
 Inherited Type: String   CSS Inheritance: yes
Determines whether the text is boldface.
AmLegend
 Inherited Type: Number   CSS Inheritance: no
Horizontal space between legend items, in pixels.
AmLegend
 Inherited Type: Boolean   CSS Inheritance: yes
A Boolean value that indicates whether kerning is enabled (true) or disabled (false).
AmLegend
 Inherited Type: Number   CSS Inheritance: yes
The number of additional pixels to appear between each character.
AmLegend
 Inherited Type: Number   CSS Inheritance: no
Space below the last row of the legend, in pixels.
AmLegend
 Inherited Type: Number   CSS Inheritance: no
Space on the left from the first column of the legend.
AmLegend
 Inherited Type: Number   CSS Inheritance: no
Space on the right from the last column of the legend.
AmLegend
 Inherited Type: Number   CSS Inheritance: no
Space above the first row of the legend, in pixels.
AmLegend
 Inherited Type: uint   Format: Color   CSS Inheritance: no
Marker border color.
AmLegend
 Inherited Type: Number   CSS Inheritance: no
Thickness of the legend border.
AmLegend
 Inherited Type: uint   Format: Color   CSS Inheritance: no
The color of the disabled marker (when the graph is hidden).
AmLegend
 Inherited Type: Number   CSS Inheritance: no
Space between legend marker and legend text, in pixels.
AmLegend
 Inherited Type: Number   CSS Inheritance: no
Size of the legend marker (key).
AmLegend
 Inherited Type: String   CSS Inheritance: no
Shape of the legend marker (key).
AmLegend
 Inherited Type: Number   CSS Inheritance: no
Maximum number of columns in the legend.
AmLegend
 Inherited Type: uint   Format: Color   CSS Inheritance: no
Value text color if value is negative.
AmLegend
 Inherited Type: uint   Format: Color   CSS Inheritance: no
Value text color if value is positive.
AmLegend
 Inherited Type: Boolean   CSS Inheritance: no
Specifies whether legend entries should be placed in reversed order.
AmLegend
 Inherited Type: uint   Format: Color   CSS Inheritance: yes
Legend item text color on roll-over.
AmLegend
 Inherited Type: Number   CSS Inheritance: no
When you roll-over the legend entry, all other graphs can reduce their opacity, so that the graph you rolled-over would be distinguished.
AmLegend
 Inherited Type: Boolean   CSS Inheritance: no
Whether showing/hiding of graphs by clicking on the legend marker is enabled or not.
AmLegend
 Inherited Type: uint   Format: Color   CSS Inheritance: no
legend switch color.
AmLegend
 Inherited Type: String   CSS Inheritance: no
legend switch type (in case the legend is switchable).
AmLegend
 Inherited Type: String   CSS Inheritance: yes
Alignment of text within a container.
AmLegend
 Inherited Type: String   CSS Inheritance: yes
Determines whether the text is underlined.
AmLegend
 Inherited Type: Number   Format: Length   CSS Inheritance: yes
Offset of first line of text from the left side of the container, in pixels.
AmLegend
 Inherited Type: String   CSS Inheritance: no
Alignment of the value text.
AmLegend
 Inherited Type: Number   CSS Inheritance: no
Width of the value text.
AmLegend
 Inherited Type: Number   CSS Inheritance: no
Vertical space between legend items, in pixels.
AmLegend
Property detail
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]].

The default value is [[percents]]%.

Implementation
    public function get valueTextRegular():String
    public function set valueTextRegular(value:String):void
Constructor detail
StockLegend()constructor
public function StockLegend()