Class: ContinuousCountingBikeTheme

ContinuousCountingBikeTheme

ContinuousCountingBikeTheme

new ContinuousCountingBikeTheme()

modules/tools/gfi/themes/continuousCountingBike/model.js, line 28
Properties:
Name Type Default Description
dayDataset Object {} Empty object for the dataset of yesterday
lastSevenDaysDataset Object {} Empty object for the dataset of the last seven days
yearDataset Object {} Empty object for the dataset of the current year
activeTab String "info" Contains the name of the active tab
downloadLink String "" Link for the download data
Fires:
Listens to Events:

Extends

Methods

createD3Document(activeTab){void}

modules/tools/gfi/themes/continuousCountingBike/model.js, line 401
createD3Document creates an object for the graph model to create the graphic via radio trigger, the graphConfig object is transferred to the graph module
Name Type Description
activeTab String contains the value of the active tab
Fires:

createxAxisTickValues(data, xThinning){Array}

modules/tools/gfi/themes/continuousCountingBike/model.js, line 484
createxAxisTickValues returns an array of the tick values for the graph module
Name Type Description
data Array array of objects from dayLineData
xThinning Integer number for the distance between the ticks
Returns:
array of the tick values

destroy(){void}

modules/tools/gfi/themes/continuousCountingBike/model.js, line 452
destroy removes the children and the routable button

download(){void}

modules/tools/gfi/themes/continuousCountingBike/model.js, line 474
download executes the csv download

getDataAttributes(inspectData){Array.<String>}

modules/tools/gfi/themes/continuousCountingBike/model.js, line 352
getDataAttributes returns an array of key values.
Name Type Description
inspectData Object contains the first row of the dataset
Returns:
array with key values

getDatasetByActiveTab(activeTab){Object}

modules/tools/gfi/themes/continuousCountingBike/model.js, line 433
getDatasetByActiveTab returns the dataset object for the active tab
Name Type Description
activeTab String contains the value of the active tab
Returns:
returns an object of the prepaired dataset for the active tab

getLegendAttributes(inspectData){Array}

modules/tools/gfi/themes/continuousCountingBike/model.js, line 370
getLegendAttributes returns an array for the graphic legend
Name Type Description
inspectData Object contains the first row of the dataset
Returns:
contains an array of objecs for the graphic legend

parseGfiContent(){void}

modules/tools/gfi/themes/continuousCountingBike/model.js, line 94
ParseGfiContent parses the gfiContent into several variables for the graphics and for the info tab.
Fires:
  • Util#event:RadioRequestUtilPunctuate

prepareDayDataset(data){void}

modules/tools/gfi/themes/continuousCountingBike/model.js, line 262
prepareDayDataset creates an object for the dayDataset
Name Type Description
data Array array of objects from dayLineData

prepareLastSevenDaysDataset(data){void}

modules/tools/gfi/themes/continuousCountingBike/model.js, line 292
prepareLastSevenDaysDataset creates an object for the lastSevenDaysDataset
Name Type Description
data Array array of objects from lastSevenDaysLineData

prepareYearDataset(data){void}

modules/tools/gfi/themes/continuousCountingBike/model.js, line 322
prepareYearDataset creates an object for the yearDataset
Name Type Description
data Array array of objects from yearLineData

replaceValuesWithChildObjects(){void}

modules/tools/gfi/themes/continuousCountingBike/model.js, line 41
ReplaceValuesWithChildObjects checks the gfiContent if there are attributes with links to images like jpg/jpeg/png/gif. These attributes will be taken out of gfiContent and hand over to the object image view to prepare templates. These templates are pushed into the children Array which will be handled in the view.

setActiveTab(value){void}

modules/tools/gfi/themes/continuousCountingBike/model.js, line 524
Setter for activeTab
Name Type Description
value String Contains the active tab

setDayDataset(value){void}

modules/tools/gfi/themes/continuousCountingBike/model.js, line 551
Setter for dayDataset
Name Type Description
value Object Contains the yesterday dataset
modules/tools/gfi/themes/continuousCountingBike/model.js, line 580
Setter for downloadLink
Name Type Description
value String Contains the downloadLink

setInfoGFIContent(value){void}

modules/tools/gfi/themes/continuousCountingBike/model.js, line 533
Setter for infoGFIContent
Name Type Description
value Array Contains the feature information for the info tab

setLastSevenDaysDataset(value){void}

modules/tools/gfi/themes/continuousCountingBike/model.js, line 561
Setter for lastSevenDaysDataset
Name Type Description
value Object Contains the dataset of the last seven days

setSize(value){void}

modules/tools/gfi/themes/continuousCountingBike/model.js, line 542
Setter for setSize
Name Type Description
value Object Contains an object with width and height attributes

setYearDataset(value){void}

modules/tools/gfi/themes/continuousCountingBike/model.js, line 571
Setter for yearDataset
Name Type Description
value Object Contains the dataset of the current year

splitDayDataset(dayLine){Array}

modules/tools/gfi/themes/continuousCountingBike/model.js, line 159
splitDayDataset creates a json for the graphic module with the dayLine data.
Name Type Description
dayLine String contains the dayLine data of gfiContent
Fires:
  • Util#event:RadioRequestUtilPunctuate
Returns:
array with prepared objects of the data

splitLastSevenDaysDataset(lastSevenDaysLine){Array}

modules/tools/gfi/themes/continuousCountingBike/model.js, line 195
splitLastSevenDaysDataset creates a json for the graphic module with the lastSevenDaysLine data.
Name Type Description
lastSevenDaysLine String contains the lastSevenDays data of gfiContent
Fires:
  • Util#event:RadioRequestUtilPunctuate
Returns:
array with prepared objects of the data

splitYearDataset(yearLine){Array}

modules/tools/gfi/themes/continuousCountingBike/model.js, line 230
splitYearDataset creates a json for the graphic module with the yearLine data.
Name Type Description
yearLine String contains the year data of gfiContent
Fires:
  • Util#event:RadioRequestUtilPunctuate
Returns:
array with prepared objects of the data

Events

inherited changeIsReady

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