ia.DataGroup Class
Responsible for holding information abut the data for a group of components.
Constructor
ia.DataGroup
-
report -
suffix
Parameters:
-
reportia.ReportThe report object.
-
suffixNumberThe component suffix.
Item Index
Methods
Methods
addEventListener
-
eventType -
fnc -
obj
Add an event listener.
Parameters:
-
eventTypeStringThe type of event to listen for.
-
fncFunctionThe function to call when the event occurs.
-
objObjectAn optional parent object.
build
-
callbackFnc
Builds the datagroup.
Parameters:
-
callbackFncFunctionGets called when the DataGroup is complete.
checkForCustomThemeProperties
-
me.thematic -
indicator
Checks if the loaded indicator has custom legend properties.
Parameters:
-
me.thematicia.ThematicThe me.thematic.
-
indicatoria.IndicatorThe indicator.
clearFilter
()
Clears the filter.
dispatchEvent
-
event
Dispatch an event to the listeners.
Parameters:
-
eventObjectThe 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:
-
indicatoria.GeographyThe indicator.
onIndicatorChanged
-
indicator
Called after an indicator has changed.
Parameters:
-
indicatoria.IndicatorThe indicator.
removeListener
-
obj
Removes all event listeners for the given object.
Parameters:
-
objObjectThe object.
render
()
private
Responsible for rendering all the components.
setData
-
geogId -
indicatorId -
date
Loads a new indicator.
Parameters:
-
geogIdStringThe geog id.
-
indicatorIdStringThe indicator id.
-
dateStringThe date.
setFeatureFilter
-
featureList
Filters the data group on a list of feature ids.
Parameters:
-
featureListStringa list of feature ids.
setFilter
-
filterId -
filterValue
Sets a new filter.
Parameters:
-
filterIdStringThe filter id.
-
filterValueStringThe filter value.
update
-
callbackFnc
Call this to update the DataGroup when the data.js has been changed.
Parameters:
-
callbackFncFunctionCalled on completion of function.
updateData
-
geogId -
indicatorId -
date
Loads a new indicator.
Parameters:
-
geogIdStringThe geog id.
-
indicatorIdStringThe indicator id.
-
dateStringThe 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.