| Package | com.amcharts.stock |
| Class | public class StockLegend |
| Inheritance | StockLegend AmLegend mx.core.UIComponent |
| Property | Defined by | ||
|---|---|---|---|
![]() | adjustWidth : Boolean
If adjustWidth is true, the legend will srink so that it would take only space needed for all the entries.
| AmLegend | |
![]() | dataProvider : AmChart
Data provider of the legend is the chart object.
| AmLegend | |
![]() | labelText : String
The text which will be displayed in the legend.
| AmLegend | |
![]() | numberFormatter : NumberFormatter
An instance of mx.formatters.NumberFormatter.
| AmLegend | |
![]() | percentFormatter : NumberFormatter
An instance of mx.formatters.NumberFormatter.
| AmLegend | |
![]() | textClickEnabled : Boolean
Specifies whether the legend text is clickable or not.
| AmLegend | |
![]() | useMarkerColorForLabels : Boolean
Specifies if legend labels should be use same color as corresponding markers.
| AmLegend | |
![]() | usePositiveNegativeOnPercentsOnly : Boolean
If positiveValueColor and negativeValueColor styles are defined, legend value changes it's color depending on the value.
| AmLegend | |
![]() | valueFunction : Function
You can set custom function which will format your value text using this property
| AmLegend | |
![]() | valueText : 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 | ||
| Method | Defined by | ||
|---|---|---|---|
| StockLegend | |||
![]() |
setActualSize(w:Number, h:Number):void
| AmLegend | |
| valueTextComparing | property |
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
| valueTextRegular | property |
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]]%.
public function get valueTextRegular():String
public function set valueTextRegular(value:String):void
| StockLegend | () | constructor |
public function StockLegend()