new BalkendiagrammTheme()
modules/tools/gfi/themes/bildungsatlas/balkendiagramm/model.js, line 21
Extends
Methods
-
checkIsMobile(){Boolean}
modules/tools/gfi/themes/bildungsatlas/balkendiagramm/model.js, line 274 -
requests util if portal is running on mobile device
-
createD3Document(){void}
modules/tools/gfi/themes/bildungsatlas/balkendiagramm/model.js, line 227 -
Generates the graph config and triggers the Graph-functionality to create the graph
Fires:
-
getRawTableContent(gfiProperties, layerType, themeUnit, latestValue){Object}
modules/tools/gfi/themes/bildungsatlas/balkendiagramm/model.js, line 75 -
here the content for the gfi-theme table will be parsed - note: to optimize this data this.getRevertData is used
Name Type Description gfiPropertiesObject the given data for this theme gotten by this.get("gfiContent").allProperties layerTypeString as set in the config.json -> gfiFormat -> gfiBildungsatlasFormat themeUnitString as set in the config.json -> gfiFormat -> gfiBildungsatlasFormat latestValueNumber the latest (youngest) value found in gfiProperties (you may use this.getStatisticWithYear to single it out) Returns:
an object with keys as used in the template and values not yet optimized
-
getRevertData(content, themeUnit, nameStadtteil){Object}
modules/tools/gfi/themes/bildungsatlas/balkendiagramm/model.js, line 156 -
Revert the null or empty value to standard value check if the percentage should be added
Name Type Description contentObject the full content of data created in setContent themeUnitString the themeUnit as defined in config.json => gfiFormat => gfiBildungsatlasFormat nameStadtteilString the name of the Stadtteil - should be found in this.get("gfiContent").allProperties Returns:
content with reverted/optimized data
-
getStatisticWithYear(gfiProperties, themeCategory, yearPrefix){Array}
modules/tools/gfi/themes/bildungsatlas/balkendiagramm/model.js, line 125 -
Here we get the data with the year for preparaing the balkendiagram
Name Type Description gfiPropertiesObject the content for this theme gotten by this.get("gfiContent").allProperties themeCategoryObject the category of the theme based on config.json -> gfiFormat -> gfiBildungsatlasFormat yearPrefixString the prefix to search for in gfiProperties for data prefix+year to be used for the result Returns:
an array of objects [{String: year, Integer: number}] found in gfiProperties where data has key prefixed with yearPrefix
-
getValueByKey(value){String}
modules/tools/gfi/themes/bildungsatlas/balkendiagramm/model.js, line 194 -
Name Type Description valueobject the value from the content with individual key Returns:
the well formed value to be shown on mouse hover
-
setTooltipValue(value, themeUnit){String}
modules/tools/gfi/themes/bildungsatlas/balkendiagramm/model.js, line 207 -
setter for TooltipValue of the BarGraph - note that this is sourced out because of its complexity (must be testable - see testings)
Name Type Description valueNumber the value to be shown themeUnitString as set in config.json => gfiFormat => gfiBildungsatlasFormat Returns:
the well formed value to be shown on mouse hover