Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
The PolarTransform object represents a set of axes
used to map data values to angle/distance polar coordinates
and vice versa.
You typically do not need to interact with the PolarTransform object.
Transforms are created automatically by the built-in chart types
and are used by the series contained within to transform data
into rendering coordinates.
origin:Point
[read-only]
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
The origin of the polar transform.
This point is used by associated series to convert data units
to screen coordinates.
Implementation public function get origin():Point
radius:Number
[read-only]
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
The radius used by the transform to convert data units
to polar coordinates.
Implementation public function get radius():Number
public function PolarTransform()
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Constructor.
public function setSize(width:Number, height:Number):void
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Sets the width and height that the PolarTransform uses
when calculating origin and radius.
The containing chart calls this method.
You should not generally call this method directly.
Parameters
| width:Number — The width, in pixels, of the PolarTransform.
|
|
| height:Number — The height, in pixels, of the PolarTransform.
|
override public function transformCache(cache:Array, aField:String, aConvertedField:String, rField:String, rConvertedField:String):void
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Maps a set of numeric values representing data to screen coordinates.
This method assumes the values are all numbers,
so any non-numeric values must have been previously converted
with the mapCache()
method.
Parameters
| cache:Array — An array of objects containing the data values
in their fields. This is also where this function
will store the converted numeric values.
|
|
| aField:String — The field where the data values for the x axis
can be found.
|
|
| aConvertedField:String — The field where the mapped x screen coordinate
will be stored.
|
|
| rField:String — The field where the data values for the y axis
can be found.
|
|
| rConvertedField:String — The field where the mapped y screen coordinate
will be stored.
|
public static const ANGULAR_AXIS:String = a
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
A string representing the angular axis.
public static const RADIAL_AXIS:String = r
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
A string representing the radial axis.
Mon Feb 18 2013, 01:33 PM +11:00