Package | com.yahoo.astra.fl.charts |
Class | public class PieChart |
Inheritance | PieChart Chart fl.core.UIComponent |
Implements | ICategoryChart |
Property | Defined by | ||
---|---|---|---|
categoryField : String
The field used to access categories for this series.
| PieChart | ||
categoryNames : Array
The names of the categories used by each series.
| PieChart | ||
dataField : String
The field used to access data for this series.
| PieChart | ||
dataProvider : Object | Chart | ||
dataTipFunction : Function
If defined, the chart will call the input function to determine the
text displayed in the chart's data tip.
| Chart | ||
defaultSeriesType : Object
When raw data (like an Array of Numbers) is encountered where an
ISeries instance is expected, it will be converted to this default
type.
| Chart | ||
legend : ILegend
The component that will display a human-readable legend for the chart.
| Chart |
Method | Defined by | ||
---|---|---|---|
PieChart()
Constructor.
| PieChart | ||
indexToSeries(index:int):ISeries
Returns the ISeries object at the specified index.
| Chart | ||
seriesToCategoryField(series:PieSeries):String
Determines the category field used by the series.
| PieChart | ||
seriesToDataField(series:PieSeries):String
Determines the data field used by the series.
| PieChart | ||
seriesToIndex(series:ISeries):int
Returns the index within this plot area of the input ISeries object.
| Chart |
Method | Defined by | ||
---|---|---|---|
defaultDataTipFunction(item:Object, index:int, series:ISeries):String
| PieChart | ||
refreshSeries():void
Analyzes the input data and smartly converts it to the correct ISeries type
required for drawing.
| Chart |
Style | Description | Defined by | ||
---|---|---|---|---|
Type: Boolean Determines if data changes should be displayed with animation. | Chart | |||
Type: Class Name of the class to use as the skin for the background and border of the component. | Chart | |||
Type: Number The padding that separates the border of the component from its contents, in pixels. | Chart | |||
Type: Class Name of the class to use as the skin for the background and border of the chart's data tip. | Chart | |||
Type: Number If the datatip's content padding is customizable, it will use this value. | Chart | |||
Type: TextFormat The TextFormat object to use to render data tips. | Chart | |||
Type: Boolean Indicates whether embedded font outlines are used to render the text field. | Chart | |||
seriesColors
| Type: Array An Array containing the default colors for each series. These colors are used for markers in most cases, but they may apply to lines, fills, or other graphical items. Important: In the PieChart, a series uses multiple colors. The [ [ 0xfcaf3e, 0x73d216, 0x729fcf, 0xfce94f, 0xad7fa8, 0x3465a4 ], [ 0x3465a4, 0xad7fa8, 0xfce94f, 0x729fcf, 0x73d216, 0xfcaf3e ] ] . | PieChart | ||
Type: Array The default size of the markers in pixels. | Chart | |||
Type: Array An Array containing the default skin classes for each series. | Chart |
categoryField | property |
categoryField:String
[read-write]The field used to access categories for this series.
Implementation public function get categoryField():String
public function set categoryField(value:String):void
categoryNames | property |
categoryNames:Array
[read-write]The names of the categories used by each series.
Implementation public function get categoryNames():Array
public function set categoryNames(value:Array):void
dataField | property |
dataField:String
[read-write]The field used to access data for this series.
Implementation public function get dataField():String
public function set dataField(value:String):void
PieChart | () | constructor |
public function PieChart()
Constructor.
defaultDataTipFunction | () | method |
protected override function defaultDataTipFunction(item:Object, index:int, series:ISeries):String
Parameters
item:Object |
|
index:int |
|
series:ISeries |
String |
seriesToCategoryField | () | method |
public function seriesToCategoryField(series:PieSeries):String
Determines the category field used by the series. Either the chart's default category field or a category field explicitly defined for the series.
Parametersseries:PieSeries |
String |
seriesToDataField | () | method |
public function seriesToDataField(series:PieSeries):String
Determines the data field used by the series. Either the chart's default data field or a data field explicitly defined for the series.
Parametersseries:PieSeries |
String |