ia.DataGroup Class
Responsible for holding information abut the data for a group of components.
Constructor
ia.DataGroup
-
report
-
suffix
Parameters:
-
report
ia.ReportThe report object.
-
suffix
NumberThe component suffix.
Item Index
Methods
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.
build
-
callbackFnc
Builds the datagroup.
Parameters:
-
callbackFnc
FunctionGets called when the DataGroup is complete.
checkForCustomThemeProperties
-
me.thematic
-
indicator
Checks if the loaded indicator has custom legend properties.
Parameters:
-
me.thematic
ia.ThematicThe me.thematic.
-
indicator
ia.IndicatorThe indicator.
clearFilter
()
Clears the filter.
dispatchEvent
-
event
Dispatch an event to the listeners.
Parameters:
-
event
ObjectThe event object.
getFilterFeatures
()
String
Gets the list of filtered features.
Returns:
initData
()
private
Initialises the data for first use.
onDataChanged
()
private
Called after the data have changed - this can be if a new indicator has been selected or if a filter has been applied.
onGeographyChanged
-
indicator
Called after a geography has changed.
Parameters:
-
indicator
ia.GeographyThe indicator.
onIndicatorChanged
-
indicator
Called after an indicator has changed.
Parameters:
-
indicator
ia.IndicatorThe indicator.
removeListener
-
obj
Removes all event listeners for the given object.
Parameters:
-
obj
ObjectThe object.
render
()
private
Responsible for rendering all the components.
setData
-
geogId
-
indicatorId
-
date
Loads a new indicator.
Parameters:
-
geogId
StringThe geog id.
-
indicatorId
StringThe indicator id.
-
date
StringThe date.
setFeatureFilter
-
featureList
Filters the data group on a list of feature ids.
Parameters:
-
featureList
Stringa list of feature ids.
setFilter
-
filterId
-
filterValue
Sets a new filter.
Parameters:
-
filterId
StringThe filter id.
-
filterValue
StringThe filter value.
update
-
callbackFnc
Call this to update the DataGroup when the data.js has been changed.
Parameters:
-
callbackFnc
FunctionCalled on completion of function.
updateData
-
geogId
-
indicatorId
-
date
Loads a new indicator.
Parameters:
-
geogId
StringThe geog id.
-
indicatorId
StringThe indicator id.
-
date
StringThe date.
updateStats
()
private
Updates the statictics substitution variables.
updateThematicParams
()
private
Updates the params for the thematics.
Properties
comparisonData
Object
The comparison data.
comparisonThemeData
Object
The comparison theme data.
indicatorData
Object
The indicator data.
legendSettings
Object
holder for the legend settings.
suffix
String
The suffix for the data group.
themeData
Object
The theme data.