Methods
buildgraphic(datajb, max_axis_value, drawid)
Renders the stacked bar chart
Parameters:
Name | Type | Description |
---|---|---|
datajb |
data object to render containing the data of one club of one year | |
max_axis_value |
max absolute value for the stacked bar chart | |
drawid |
id of the element in which to draw the stacked bar chart |
- Source:
buildgraphicAxis(datajb, max_axis_value, drawid)
Renders the stacked bar chart axis
Parameters:
Name | Type | Description |
---|---|---|
datajb |
data object to render containing the data of one club of one year | |
max_axis_value |
max absolute value for the stacked bar chart | |
drawid |
id of the element in which to draw the stacked bar chart |
- Source:
buildParameterKaempfer() → {string}
Composes the Get Parameters of the fighter filters
Returns:
- Type
- string
changeBegegnung(e)
Handles the event of check status changes of the Begegnung checkboxes
Parameters:
Name | Type | Description |
---|---|---|
e |
element that triggered the event |
- Source:
changeBegegnungYear(e)
Event handler to set/change the year of the detail table
Parameters:
Name | Type | Description |
---|---|---|
e |
event that triggered the function call |
- Source:
changeKaempferFilter(e)
Handles the event of check status changes of the fighter checkboxes
Parameters:
Name | Type | Description |
---|---|---|
e |
element that triggered the event |
- Source:
changeYear(e)
Handles the event of check status changes of the year checkboxes
Parameters:
Name | Type | Description |
---|---|---|
e |
element that triggered the event |
- Source:
createLegende(divID)
Prints the legende on bottom of the page
Parameters:
Name | Type | Description |
---|---|---|
divID |
- Source:
displayToolTipBox(svgID)
Displays the values of the stacked bar chart in a tooltip
Parameters:
Name | Type | Description |
---|---|---|
svgID |
id of the stacked bar chart element |
- Source:
displayToolTipBoxfighters(e)
Displays the tooltip of the fighter comparision between two years
Parameters:
Name | Type | Description |
---|---|---|
e |
event that triggered the call |
- Source:
followingBox(e)
Updates the position of the tooltip box
Parameters:
Name | Type | Description |
---|---|---|
e |
mouse event that triggered the call |
- Source:
hideBegegnungYear(e)
Hides the detail table
Parameters:
Name | Type | Description |
---|---|---|
e |
event that triggered the function call |
- Source:
hideToolTipBox()
Hides tool tip box of the stacked bar chart
- Source:
hideToolTipBoxfighters()
Hides the fighter tooltip box
- Source:
linechart(id, left, right, hovered, clicked, maxrows, changeRank)
Renders the line chart between two rankings
Parameters:
Name | Type | Description |
---|---|---|
id |
id of the element in which to render the line chart | |
left |
data of the ranking to the left side | |
right |
data of the ranking to the right side | |
hovered |
id of hovered element | |
clicked |
id of clicked element | |
maxrows |
max rows of rankings on both sides | |
changeRank |
flag if filters should influence ranking order |
- Source:
loadFighters(clubName, firstYear, secondYear)
Loads the data for the fighter tooltip box
Parameters:
Name | Type | Description |
---|---|---|
clubName |
club name | |
firstYear |
left year of line in line chart | |
secondYear |
right year of line in line chart |
rendertable(tableid, data)
Renders the table
Parameters:
Name | Type | Description |
---|---|---|
tableid |
table id of the element in which the data should be rendered | |
data |
data to render |
- Source:
update()
Updates the data for the visualisation based on the modified filters
updateBegegnungTable()
Updates the data for the detail table based on the modified filters
updateYearTable()
Updates the data for the year table based on the modified filters