Class: SchulentlasseneTheme

SchulentlasseneTheme

SchulentlasseneTheme

new SchulentlasseneTheme()

modules/tools/gfi/themes/bildungsatlas/schulentlassene/model.js, line 72

Extends

Methods

checkIsMobile(){Boolean}

modules/tools/gfi/themes/bildungsatlas/schulentlassene/model.js, line 381
requests util if portal is running on mobile device
Returns:
isMobile

createDataForAbschluesse(gfiProperties, legendArray, maxYearsToShowInDiagrams, ifbqKeysAbsolute){Array}

modules/tools/gfi/themes/bildungsatlas/schulentlassene/model.js, line 205
creates the data shaped for Linegraph uses createDataForZeitverlauf to form the different lines
Name Type Description
gfiProperties Object the given data for this theme gotten by this.get("gfiContent").allProperties
legendArray Array the result of defaults legendAbschluesse
maxYearsToShowInDiagrams Integer the maximum years/bars/points to be shown on the x-axis
ifbqKeysAbsolute Object the ifbq-Keys for the Linegraph (absolute) - see defaults
Returns:
an array of objects as Array({year, number, class, style})

createDataForZeitverlauf(gfiProperties, tag, valueTag, maxYearsToShowInDiagrams){Array}

modules/tools/gfi/themes/bildungsatlas/schulentlassene/model.js, line 238
creates an array of the statistic for the graph data tag
Name Type Description
gfiProperties Object the given data for this theme gotten by this.get("gfiContent").allProperties
tag String part of the ifbq-key that is used for multiple year data (e.g. "C41_Abi" for "C41_Abi_2016", "C41_Abi_2017", ...)
valueTag String as used in graphConfig.attrToShowArray: name of the y-value
maxYearsToShowInDiagrams Integer the maximum years/bars/points to be shown on the x-axis
Returns:
an array of Objects with the structure [{"year": x, valueTag: y}] to be used as graph data

createGraphAbschluesse(){void}

modules/tools/gfi/themes/bildungsatlas/schulentlassene/model.js, line 333
creates the Linegraph abschluesse and triggers Graph createGraph
Fires:

createGraphZeitverlauf(){void}

modules/tools/gfi/themes/bildungsatlas/schulentlassene/model.js, line 286
creates the BarGraph zeitverlauf and triggers Graph createGraph
Fires:

helperCreateDataForAbschluesse(className, numberName, verlaufX, legendObj, verlaufAll){Array}

modules/tools/gfi/themes/bildungsatlas/schulentlassene/model.js, line 161
creates the data for multi line diagrams
Name Type Description
className String the class name for the dot as defined in GraphConfig and CSS
numberName String the ref to the x axis name of the group as defined in GraphConfig
verlaufX Array an array as result from createDataForZeitverlauf
legendObj Object the result of defaults legendAbschluesse but with its class parameter as property
verlaufAll Array an array to store values for all verlaufX data
Returns:
the result is an array with objects [{class, style, year}]

setTemplateValues(gfiProperties, legendArray, maxYearsToShowInDiagrams, ifbqKeysRelative, ifbqKeysAbsolute, gfiBildungsatlasFormat){void}

modules/tools/gfi/themes/bildungsatlas/schulentlassene/model.js, line 117
sets the values for the template the values from the source are used as they are - only themeType and layerType are added for schulentlassene
Name Type Description
gfiProperties Object the given data for this theme gotten by this.get("gfiContent").allProperties
legendArray Array the result of defaults legendAbschluesse
maxYearsToShowInDiagrams Integer the maximum years/bars/points to be shown on the x-axis
ifbqKeysRelative Object the ifbq-Keys for the BarGraph (percent) - see defaults
ifbqKeysAbsolute Object the ifbq-Keys for the Linegraph (absolute) - see defaults
gfiBildungsatlasFormat Object an object {layerType, themeType} from config.json to control the behavior of the theme - search for keys gfiFormat and gfiBildungsatlasFormat