Members
binwidth :number
The binwidth of the expenses chart
Type:
- number
- Source:
chordTooltip :d3
The tooltip of the chord diagram
Type:
- d3
- Source:
combinedObj :array
Array storing all combined and removed data entries to be able to restore them
Type:
- array
Properties:
Name | Type | Description |
---|---|---|
id |
string | a unique hash of the data |
name |
string | the displayed name of the object |
added |
array | the newly added data (only with combining) |
removed |
array | the removed data |
type |
string | either "combine" or "remove" |
- Source:
- See:
expensesBarChart :dc.barChart
A dc.barChart which shows the number of relations of links from a legal entity to a media organisation. sorted by the amount of money on the x axis.
Type:
- dc.barChart
- Source:
filterTooltip :d3
The tooltip of all filters
Type:
- d3
- Source:
groupedLegalDim :crossfilter.dimension.group
A crossfilter.dimension.group grouping the legal dimension for total money and number of relations
Type:
- crossfilter.dimension.group
Properties:
Name | Type | Description |
---|---|---|
count |
number | the number of relations to media organisations |
total |
number | the sum of the transfered money |
- Source:
- See:
groupedMediaDim :crossfilter.dimension.group
A crossfilter.dimension.group grouping the media dimension for total money and number of relations
Type:
- crossfilter.dimension.group
Properties:
Name | Type | Description |
---|---|---|
count |
number | the number of relations to legal entities |
total |
number | the sum of the transfered money |
- Source:
- See:
halfQuarter :int
The half of the quarters in the format: years*10 + quarter: e.g.: 20144 = year 2014 quarter 4
Type:
- int
- Source:
- See:
hasLocalStorage :boolean
Contains true if the browser supports local storage
Type:
- boolean
- Source:
lawsBarChart :dc.barChart
A dc.barChart which shows the transfered money per legal background
Type:
- dc.barChart
- Source:
lawsDim :crossfilter.dimension
A crossfilter.dimension accessing the legal background of the relations.
Type:
- crossfilter.dimension
- Source:
- See:
legalCount :dc.dataCount
A dc.dataCount which shows the number selected legal entities.
Type:
- dc.dataCount
- Source:
legalDim :crossfilter.dimension
A crossfilter.dimension accessing the legal entities.
Type:
- crossfilter.dimension
- Source:
- See:
legalDim2 :crossfilter.dimension
A second crossfilter.dimension accessing the legal entities. We need two dimensions to filter on separate diagrams for the same dimension
Type:
- crossfilter.dimension
- Source:
- See:
legalTable :dc.data-table
A dc.data-table which shows detailed information of the legal entities
Type:
- dc.data-table
Properties:
Name | Type | Description |
---|---|---|
names |
string | the names of the legal entity |
relations |
number | the number of relations to media organisations |
sum |
number | the sum of the transfered money |
- Source:
legalTableFilter :array
Contains the keys of the selected entries in the legal table
Type:
- array
- Source:
legalTableOrdering :Object
How the legal table should be ordered
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
alphabet |
function | order the first column |
relation |
function | order the second column |
sum |
function | order the third column |
- Source:
- See:
legalTablePaging :TablePaging
The table paging of the legal table
Type:
- Source:
legalTableSorting :string
How the legal table should be sorted ("alphabet", "relation" or "sum")
Type:
- string
- Source:
- See:
legalTableSortingStatus :Object
Contains the current sorting status of the legal entities table
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
alphabet |
string | the glyph of the sorting of the first column (names) |
relation |
string | the glyph of the sorting of the second column (relations) |
sum |
string | the glyph of the sorting of the third column (sum) |
- Source:
links :array
All final, unchangeable links (edges) between the nodes in the graph as D3 objects.
Type:
- array
Properties:
Name | Type | Description |
---|---|---|
links.source |
number | the legal entity |
links.target |
number | the media owner |
links.quarter |
number | in the transaction has happened. |
links.year |
number | in the transaction has happened. |
links.law |
number | acted upon or paragraph, respectively. (§2,§4,§31) |
links.euro |
number | amount of money. |
- Source:
locale :d3.local
Own local styles for d3
Type:
- d3.local
- Source:
mediaCount :dc.dataCount
A dc.dataCount which shows the number selected media organizations.
Type:
- dc.dataCount
- Source:
mediaDim :crossfilter.dimension
A crossfilter.dimension accessing the media organizations.
Type:
- crossfilter.dimension
- Source:
- See:
mediaDim2 :crossfilter.dimension
A second crossfilter.dimension accessing the media organizations. We need two dimensions to filter on separate diagrams for the same dimension
Type:
- crossfilter.dimension
- Source:
- See:
mediaTable :dc.data-table
A dc.data-table which shows detailed information of the media organizations.
Type:
- dc.data-table
Properties:
Name | Type | Description |
---|---|---|
names |
string | the names of the media organizations. |
relations |
number | the number of relations to legal entities. |
sum |
number | the sum of the transfered money |
- Source:
mediaTableFilter :array
Contains the keys of the selected entries in the media table
Type:
- array
- Source:
mediaTableOrdering :Object
How the media table should be ordered
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
alphabet |
function | order the first column |
relation |
function | order the second column |
sum |
function | order the third column |
- Source:
- See:
mediaTablePaging :TablePaging
The table paging of the media table
Type:
- Source:
mediaTableSorting :string
How the media table should be sorted ("alphabet", "relation" or "sum")
Type:
- string
- Source:
- See:
mediaTableSortingStatus :Object
Contains the current sorting status of the media organization table
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
alphabet |
string | the glyph of the sorting of the first column (names) |
relation |
string | the glyph of the sorting of the second column (relations) |
sum |
string | the glyph of the sorting of the third column (sum) |
- Source:
ndxLinks :crossfilter
The crossfilter object containing all relations
Type:
- crossfilter
- Source:
- See:
nodes :array
All final, unchangeable nodes in this graph.
Type:
- array
Properties:
Name | Type | Description |
---|---|---|
nodes.name |
string | the name of the id. this can be a legal entity or a media owner |
nodes.gov |
bool | either it is a legal entity or not |
- Source:
numericAscendingGlyph :string
Contains the name of the glyphicon for numerical ascending sorting
Type:
- string
- Source:
numericDescendingGlyph :string
Contains the name of the glyphicon for numerical descending sorting
Type:
- string
- Source:
ordinalAscendingGlyph :string
Contains the name of the glyphicon for ordinal ascending sorting
Type:
- string
- Source:
ordinalDescendingGlyph :string
Contains the name of the glyphicon for ordinal descending sorting
Type:
- string
- Source:
quartalSelection :array
Contains which quartal is currently selected with booleans.
Type:
- array
- Source:
quarterNames :array
The names of the quarters in the format: years*10 + quarter: e.g.: 20144 = year 2014 quarter 4
Type:
- array
- Source:
sourceFileName :string
Path with filename and -end of the data base file to read.
Type:
- string
- Source:
sourceRestId :number
The id of the legal entity representing the rest of the legal entities in the chord diagram.
Type:
- number
- Source:
sourceToValue :Object
map from a source index to the value object of it.
Type:
- Object
- Source:
sparklineTooltip :d3
The tooltip of the sparkline bar charts
Type:
- d3
- Source:
spendDim :crossfilter.dimension
A crossfilter.dimension accessing the number of relations.
Type:
- crossfilter.dimension
- Source:
- See:
spendPerLaw :crossfilter.dimension.group
A crossfilter.dimension.group grouping the laws dimension for the transfered money
Type:
- crossfilter.dimension.group
- Source:
- See:
spendPerTime :crossfilter.dimension.group
A crossfilter.dimension.group grouping the time dimension for the transfered money
Type:
- crossfilter.dimension.group
- Source:
- See:
TablePaging :Object
The object for the table paging contains functions for jumping to the next and previous table pages
Type:
- Object
- Source:
tableSorting :Object
Contains the functions on how to sort the table columns
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
alphabet |
function | sort by name |
relation |
function | sort by the count of relations |
sum |
function | sort by the total sum of money transfers |
- Source:
tagTooltip :jQuery
The tooltip of the combine or remove tags.
Type:
- jQuery
- Source:
targetRestId :number
The id of the media organization representing the rest of the media organization in the chord diagram.
Type:
- number
- Source:
timeBarChart :dc.barChart
A dc.barChart which shows the transfered money per quarter
Type:
- dc.barChart
- Source:
timeDim :crossfilter.dimension
A crossfilter.dimension accessing the quarter of the relations.
Type:
- crossfilter.dimension
- Source:
- See:
trendBarChart :dc.barChart
A dc.barChart which shows the number of relations of sources from a legal entity to a media organisation. sorted by the trend on the x axis.
Type:
- dc.barChart
- Source:
Methods
addTotal(p, v)
Add the amount of money of the input value to the grouping object
Parameters:
Name | Type | Description |
---|---|---|
p |
object | the grouping object containing: the count which gets increased by 1 and the total sum of transfered money which gets increased by the input v |
v |
object | the object to increase (only v.euro is used) |
- Source:
- See:
Returns:
p the adjusted grouping object
chordTooltipUpdate(data)
Updates the tooltip text of the chord diagram
Parameters:
Name | Type | Description |
---|---|---|
data |
array | containing the name the sum of the transfered money and the total sum of the transfered money of the legal entity |
- Source:
combineData()
Combine all selected data entries to one data entry. But save it to be able to restore it.
- Source:
- See:
deleteData()
Delete all selected data entries. But save it to be able to restore it.
- Source:
- See:
drawChords(dim)
Draws the chord diagram
Parameters:
Name | Type | Description |
---|---|---|
dim |
crossfilter.dimension | The crossfilter dimension which is used to draw the chords |
- Source:
filterAll()
Removes all filters from all charts (dc charts and the table filters)
- Source:
- See:
-
- dc.filterAll()
formatBigEuro()
Format the the input as euros with a grouping of 3 and no decimal places and a euro sign (truncating). e.g.: 12.345€
- Source:
formatEuro()
Format the the input as euros with a grouping of 3 and 2 decimal places and a euro sign. e.g.: 12.345,67
- Source:
formatGuV()
Format the the input as euros with a grouping of 3 and 1 decimal place and a euro sign but truncat it to "Tsd." € or "Mil. €". e.g.: 12,3 Tsd.€
- Source:
formatPercent()
Format the the input as percentage number by multiply with 100 and suffix with "%". e.g.: 12.345%
- Source:
initTotal()
Initializes the grouping object (count and total with 0)
- Source:
- See:
Returns:
p the initialized grouping object
removeEmptyBins(The, filterFunction) → {crossfilter.dimension.group}
This function is called after creating a crossfilter.dimension.group and filters all values by the specified function. This is necessary because after adding and removing the same values, numerical errors lead to a not zero solution. (I use 1e-3 for a difference)
Parameters:
Name | Type | Description |
---|---|---|
The |
crossfilter.dimension.group | crossfilter.dimension.group that gets filtered |
filterFunction |
function | the function the sourceGroup gets filtered on |
- Source:
Returns:
A crossfilter.dimension.group that contains no empty values
- Type
- crossfilter.dimension.group
removeTotal(p, v)
Remove the amount of money of the input value from the grouping object
Parameters:
Name | Type | Description |
---|---|---|
p |
object | the grouping object containing: the count which gets decreased by 1 and the total sum of transfered money which gets decreased by the input v |
v |
object | the object to decrease (only v.euro is used) |
- Source:
- See:
Returns:
p the adjusted grouping object
rescaleAll()
Rescales all charts
- Source:
resetSearchBox(id, tableType)
reset the specified search box by setting the value to empty and submitting it.
Parameters:
Name | Type | Description |
---|---|---|
id |
jQuery | The jQuery Object of the search box |
tableType |
string | either "legal" or "media" |
- Source:
resizeChordChart()
Resizes the already drawn chord chart by scaling the svg size.
- Source:
resolveCombineData(id)
resolves the data of the given hash.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | the hash of the combined or removed data |
- Source:
- See:
shortenLongName(the) → {string}
shotens a long string to shorter representation
Parameters:
Name | Type | Description |
---|---|---|
the |
string | long input string |
- Source:
Returns:
a shorter representation of that string
- Type
- string
showLegalSelectionInteraction()
If there is a filter in the legal selection, show the interaction buttons "reset", "combine" and "remove" else not
- Source:
showMediaSelectionInteraction()
If there is a filter in the media selection, show the interaction buttons "reset", "combine" and "remove" else not
- Source:
showTags()
Create a tag for every object in the combinedObj array in the div with the id "#combine-blocks"
- Source:
- See:
textFilter(dim, q)
Filter a crossfilter.dimension for a string
Parameters:
Name | Type | Description |
---|---|---|
dim |
crossfilter.dimension | The dimension to filter |
q |
string | The query to filter for |
- Source:
updateAll()
Updates all charts (dc charts and non dc charts)
- Source:
- See:
-
- dc.redrawAll()