ia.Thematic Class
The ia.Thematic
class is used to
classify data. The Theme contains two classifiers
for classifying both numeric and non-numeric data.
The data is an associative array with the following format:
["eh11"]{id:"eh11", name:"polwarth", value:2345, associate1:25}
["eh12"]{id:"eh12", name:"morningside", value:4347, associate1:45}
["eh13"]{id:"eh13", name:"merchiston", value:2496, associate1:25}
Constructor
ia.Thematic
-
data
Parameters:
-
data
AssociativeArrayThe data is an associative array with the following format:
["eh11"]{id:"eh11", name:"polwarth", value:2345, associate1:25}
["eh12"]{id:"eh12", name:"morningside", value:4347, associate1:45}
["eh13"]{id:"eh13", name:"merchiston", value:2496, associate1:25}
Item Index
Methods
Properties
- CATEGORIC static
- categoricClassifier
- CONTINUOUS static
- EQUAL_INTERVAL static
- NATURAL static
- noDataValue
- NUMERIC static
- numericClassifier
- QUANTILE static
- STANDARD_DEVIATION static
- symbol
Methods
addEventListener
-
eventType
-
fnc
-
obj
Add an event listener.
Parameters:
-
eventType
StringThe type of event to listen for.
-
fnc
FunctionThe function to call when the event occurs.
-
obj
ObjectAn optional parent object.
commitChanges
()
Call this to commit any changes.
dispatchEvent
-
event
Dispatch an event to the listeners.
Parameters:
-
event
ObjectThe event object.
getClass
-
value
Gets the legend class for the given value.
Parameters:
-
value
Number | StringThe value.
Returns:
getClasses
()
ia.LegendClass[]
An array of classes contained in the theme.
Returns:
getData
()
AssociativeArray
Gets the data for the theme.
The data is an associative array with the following format:
["eh11"]{id:"eh11", name:"polwarth", value:2345, associate1:25}
["eh12"]{id:"eh12", name:"morningside", value:4347, associate1:45}
["eh13"]{id:"eh13", name:"merchiston", value:2496, associate1:25}
Returns:
getDataField
()
String
Gets the field of the data provider that provides the values.
Returns:
getDataType
()
String
Gets the data type of the data provider.
Possible values include:
ia.Thematic.NUMERIC
ia.Thematic.CATEGORIC
Returns:
removeListener
-
obj
Removes all event listeners for the given object.
Parameters:
-
obj
ObjectThe object.
setData
-
data
Sets the data for the theme.
The data is an associative array with the following format:
["eh11"]{id:"eh11", name:"polwarth", value:2345, associate1:25}
["eh12"]{id:"eh12", name:"morningside", value:4347, associate1:45}
["eh13"]{id:"eh13", name:"merchiston", value:2496, associate1:25}
Parameters:
-
data
AssociativeArrayThe data.
setDataField
-
dataField
Sets the field of the data provider that provides the values.
Parameters:
-
dataField
StringThe data field.
setDataType
-
dataType
Sets the data type of the data provider.
Possible values include:
ia.Thematic.NUMERIC
ia.Thematic.CATEGORIC
Parameters:
-
dataType
StringThe data type.
Properties
CATEGORIC
String
final
static
Specifies that the data for the thematic is categoric.
Default: "categoric"
CONTINUOUS
String
final
static
Constant indicating a continuous value classification.
Default: "continuous"
EQUAL_INTERVAL
String
final
static
Constant indicating an equal interval classification.
Default: "equalInterval"
NATURAL
String
final
static
Constant indicating a natural breaks classification.
Default: "natural"
noDataValue
String
The no data value.
Default: "No Data"
NUMERIC
String
final
static
Specifies that the data for the thematic is numeric.
Default: "numeric"
QUANTILE
String
final
static
Constant indicating a quantile classification.
Default: "quantile"
STANDARD_DEVIATION
String
final
static
Constant indicating a standard deviation classification.
Default: "standardDeviation"
symbol
String
The symbol used for point data.
Default: ia.Shape.SQUARE