Class: VerkehrsStaerkenThemeModel

Tools.GFI.Themes.VerkehrsStaerken VerkehrsStaerkenThemeModel

VerkehrsStaerkenThemeModel

new VerkehrsStaerkenThemeModel()

modules/tools/gfi/themes/verkehrsstaerken/model.js, line 32
Properties:
Name Type Default Description
ansicht String "Diagrammansicht" Mode of View to be displayed.
link String "http://daten-hamburg.de/transport_verkehr/verkehrsstaerken/DTV_DTVw_Download.xlsx" Download link for data.
zaehlstelle String "" Id of current counting station.
bezeichnung String "" Name of current counting station.
art String "" Type of counting station.
years Array.<Number> [ Array of years to be shown.
rowNames Array.<String> [ Array of row names.
dataset Array.<Object> [ Parsed dataset with all the information needed for table and diagram.
Fires:
Listens to Events:

Extends

Methods

combineYearsData(dataPerYear, years){void}

modules/tools/gfi/themes/verkehrsstaerken/model.js, line 119
Prepares the Dataset and sets it directly in the model
Name Type Description
dataPerYear Array.<Object> Array of objects containing the data by year.
years Array.<Number> Array of available years

createD3Document(key){void}

modules/tools/gfi/themes/verkehrsstaerken/model.js, line 289
Generates the graph config and triggers the Graph-functionality to create the graph
Name Type Description
key String Name of category
Fires:

createNewRowName(rowName, year){String}

modules/tools/gfi/themes/verkehrsstaerken/model.js, line 97
Removes the year from the end of the rowName. After that if the last character is a " " or a "_", this also gets removed
Name Type Description
rowName String Name of Row from gfiContent
year String/Number Year
Returns:
New row name withour the year at the end

destroy(){void}

modules/tools/gfi/themes/verkehrsstaerken/model.js, line 161
Removes all children and routables

legendData(value){Array.<Object>}

modules/tools/gfi/themes/verkehrsstaerken/model.js, line 234
Creates the definitions for the diagrams legend
Name Type Description
value string Attribute value
Returns:
Definitions for diagram legend

parseDataValue(value){String}

modules/tools/gfi/themes/verkehrsstaerken/model.js, line 222
Maps the string "*" to "Ja". If not, returnes the original value.
Name Type Description
value String Input string.
Returns:
The mapped string.

parseGfiContent(){void}

modules/tools/gfi/themes/verkehrsstaerken/model.js, line 42
Parses the gfi content and prepares the dataset. Extracts the year and the row names

yAxisLabel(value){String}

modules/tools/gfi/themes/verkehrsstaerken/model.js, line 273
Mapping of the the y-axis name
Name Type Description
value String Value
Returns:
Mapped y-axis name

Events

inherited changeIsReady

devtools/jsdoc/events.js, line 1627
Triggered when gfi theme is loaded