Packageflare.scale
Classpublic class ScaleType

Constants defining known scale types, such as linear, log, and date/time scales.



Public Methods
 MethodDefined by
  
Constructor, throws an error if called, as this is an abstract class.
ScaleType
  
isOrdinal(type:String):Boolean
[static] Tests if a given scale type indicates an ordinal scale
ScaleType
  
isQuantitative(type:String):Boolean
[static] Tests if a given scale type indicates a quantitative scale
ScaleType
Public Constants
 ConstantDefined by
  CATEGORIES : String = "categories"
[static] Constant indicating a categorical scale.
ScaleType
  LINEAR : String = "linear"
[static] Constant indicating a linear numeric scale.
ScaleType
  LOG : String = "log"
[static] Constant indicating a log-transformed numeric scale.
ScaleType
  ORDINAL : String = "ordinal"
[static] Constant indicating an ordinal scale.
ScaleType
  QUANTILE : String = "quantile"
[static] Constant indicating a quantile scale.
ScaleType
  ROOT : String = "root"
[static] Constant indicating a root-transformed numeric scale.
ScaleType
  TIME : String = "time"
[static] Constant indicating a date/time scale.
ScaleType
  UNKNOWN : String
[static] Constant indicating an unknown scale.
ScaleType
Constructor detail
ScaleType()constructor
public function ScaleType()

Constructor, throws an error if called, as this is an abstract class.

Method detail
isOrdinal()method
public static function isOrdinal(type:String):Boolean

Tests if a given scale type indicates an ordinal scale

Parameters
type:String — the scale type

Returns
Boolean — true if the type indicates an ordinal scale, false otherwise
isQuantitative()method 
public static function isQuantitative(type:String):Boolean

Tests if a given scale type indicates a quantitative scale

Parameters
type:String — the scale type

Returns
Boolean — true if the type indicates a quantitative scale, false otherwise
Constant detail
CATEGORIESconstant
public static const CATEGORIES:String = "categories"

Constant indicating a categorical scale.

LINEARconstant 
public static const LINEAR:String = "linear"

Constant indicating a linear numeric scale.

LOGconstant 
public static const LOG:String = "log"

Constant indicating a log-transformed numeric scale.

ORDINALconstant 
public static const ORDINAL:String = "ordinal"

Constant indicating an ordinal scale.

QUANTILEconstant 
public static const QUANTILE:String = "quantile"

Constant indicating a quantile scale.

ROOTconstant 
public static const ROOT:String = "root"

Constant indicating a root-transformed numeric scale.

TIMEconstant 
public static const TIME:String = "time"

Constant indicating a date/time scale.

UNKNOWNconstant 
public static const UNKNOWN:String

Constant indicating an unknown scale.