Packagemx.charts.chartClasses
Classpublic class LegendData
InheritanceLegendData Inheritance Object

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

The LegendData structure is used by charts to describe the items that should be displayed in an auto-generated legend. A chart's legendData property contains an Array of LegendData objects, one for each item in the Legend.



Public Properties
 PropertyDefined By
  aspectRatio : Number
Determines the size and placement of the legend marker.
LegendData
  element : IChartElement
The chart item that generated this legend item.
LegendData
  label : String
The text identifying the series or item displayed in the legend item.
LegendData
  marker : IFlexDisplayObject
A visual indicator associating the legend item with the series or item being represented.
LegendData
Public Methods
 MethodDefined By
  
Constructor.
LegendData
Property Detail
aspectRatioproperty
public var aspectRatio:Number

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Determines the size and placement of the legend marker. If set, the LegendItem ensures that the marker's width and height match this value. If unset (NaN), the legend item chooses an appropriate default width and height.

elementproperty 
public var element:IChartElement

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

The chart item that generated this legend item.

labelproperty 
public var label:String

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

The text identifying the series or item displayed in the legend item.

markerproperty 
public var marker:IFlexDisplayObject

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

A visual indicator associating the legend item with the series or item being represented. This DisplayObject is added as a child to the LegendItem.

Constructor Detail
LegendData()Constructor
public function LegendData()

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Constructor.