Packageflare.vis.operator.layout
Classpublic class PieLayout
InheritancePieLayout Inheritance Layout Inheritance Operator

Layout that places wedges for pie and donut charts. In addition to the layout, this operator updates each node to have a "wedge" shape.



Public Properties
 PropertyDefined by
  angleWidth : Number
The total angular size of the layout (in radians, default 2 pi).
PieLayout
 Inheritedenabled : Boolean
Indicates if the operator is enabled or disabled.
Operator
  group : String = "nodes"
The data group to layout.
PieLayout
 InheritedlayoutAnchor : Point
The layout anchor, used by some layout instances to place an initial item or determine a focal point.
Layout
 InheritedlayoutBounds : Rectangle
The layout bounds for the layout.
Layout
 InheritedlayoutRoot : DataSprite
The layout root, the root node for tree layouts.
Layout
 InheritedlayoutType : String = "null"
The type of layout and axes.
Layout
 Inheritedparameters : Object
Sets parameter values for this operator.
Operator
  radius : Number = NaN
The radius of the pie/donut chart.
PieLayout
  source : String
The source property determining wedge size.
PieLayout
  startAngle : Number
The initial angle for the pie layout (in radians).
PieLayout
 Inheritedvisualization : Visualization
The visualization processed by this operator.
Operator
  width : Number = -1
The width of wedges, negative for a full pie slice.
PieLayout
Protected Properties
 PropertyDefined by
 Inherited_anchor : Point
Layout
 Inherited_setAnchor : Boolean = false
Layout
 Inherited_t : Transitioner = null
A transitioner for storing value updates.
Layout
 InheritedxyAxes : CartesianAxes
Returns the visualization's axes as a CartesianAxes instance.
Layout
Public Methods
 MethodDefined by
  
PieLayout(field:String = null, width:Number = -1, group:String)
Creates a new PieLayout
PieLayout
 Inherited
applyParameters(op:IOperator, params:Object):void
[static] Static method that applies parameter settings to an operator.
Operator
 Inherited
Strips all EdgeSprites in a visualization of any control points.
Layout
 Inherited
Hides the axes.
Layout
 Inherited
operate(t:Transitioner = null):void
Performs an operation over the contents of a visualization.
Layout
 Inherited
setup():void
Setup method invoked whenever this operator's visualization property is set.
Operator
 Inherited
Reveals the axes.
Layout
 Inherited
[static] Updates all edges to be straight lines.
Layout
Protected Methods
 MethodDefined by
 Inherited
autoAnchor():void
Automatically-generate an anchor point.
Layout
  
layout():void
Calculates the spatial layout of visualized items.
PieLayout
 Inherited
minAngle(a1:Number, a2:Number):Number
Returns an angle value that minimizes the angular distance between a reference angle and a target angle.
Layout
Public Constants
 ConstantDefined by
 InheritedCARTESIAN : String = "cartesian"
[static] Constant indicating Cartesian (x, y) coordinates.
Layout
 InheritedPOLAR : String = "polar"
[static] Constant indicating polar (radius, angle) coordinates.
Layout
Property detail
angleWidthproperty
public var angleWidth:Number

The total angular size of the layout (in radians, default 2 pi).

groupproperty 
public var group:String = "nodes"

The data group to layout.

radiusproperty 
public var radius:Number = NaN

The radius of the pie/donut chart. If this value is not a number (NaN) the radius will be determined from the layout bounds.

sourceproperty 
source:String  [read-write]

The source property determining wedge size.

Implementation
    public function get source():String
    public function set source(value:String):void
startAngleproperty 
public var startAngle:Number

The initial angle for the pie layout (in radians).

widthproperty 
public var width:Number = -1

The width of wedges, negative for a full pie slice.

Constructor detail
PieLayout()constructor
public function PieLayout(field:String = null, width:Number = -1, group:String)

Creates a new PieLayout

Parameters
field:String (default = null) — the source data field for determining wedge size
 
width:Number (default = -1) — the radial width of wedges, negative for full slices
 
group:String
Method detail
layout()method
protected override function layout():void

Calculates the spatial layout of visualized items. Layout operators override this method with their layout implementations.