AggreSetChart

AggreSetChart

AggreSet chart

Constructor

new AggreSetChart()

Source:

Extends

Methods

calcCliquesInMatrix()

Re-calculation of clique matrix with reduced number of rows
Source:

calcRootCliquesInMatrix()

Initial matrix calculation to reduce total number of rows for later filtering and re-rendering
Source:

checkIfDataIsFiltered()

Checks if the data has been filtered
Overrides:
Source:

draw()

Draws necessary information as legend, statistics, rows and intersections on the chart
Source:

drawIntersections()

Draws the intersections of the row and column lines represented by rectangles and circles
Source:

drawLegend()

Draws the legend about the circles
Source:

drawRows()

Draws row and column lines on the aggreset-chart
Source:

drawStatistic()

Draws statistics about how many of the pairs have common intersections
Source:

filterDimensionOnDescriptionKey(index, match)

Set filter on crossfilter dimension
Overrides:
Source:
Parameters:
Name Type Description
index of data because dimension is unsorted => index == -1 no array available for dimension
match

handleCatMouseClick(d, i, _this)

Handles the events when clicking on a category with the mouse
Source:
Parameters:
Name Type Description
d the current element
i the index
_this reference of this

handleCatMouseOut(d, i, _this)

Handles events when the mouse is out of a category
Source:
Parameters:
Name Type Description
d the current element
i the index
_this reference of this

handleCatMouseOver(d, i, _this)

Handle the events when hovering above the categories of elements (above genres in case of movies)
Source:
Parameters:
Name Type Description
d the current element
i the index
_this reference of this

handleCellMouseClick(d, i, node, _this)

Handles the events when clicking on a rectangle or circle with the mouse
Source:
Parameters:
Name Type Description
d the current element
i the index
node node from the data
_this reference of this

handleCellMouseMove(d, i, node, _this, type)

Handles events when moving the mouse. Displays a tooltip when above a circle.
Source:
Parameters:
Name Type Description
d the current element
i the index
node node from the data
_this reference of this
type rect or circle

handleCellMouseOut(d, i, node, _this, type)

Handles events when the mouse is out of a circle or rectangle
Source:
Parameters:
Name Type Description
d the current element
i the index
node node from the data
_this reference of this
type rect or circle

handleCellMouseOver(d, i, node, _this, type)

Handles the events when hovering with the mouse above the chart
Source:
Parameters:
Name Type Description
d the current element
i the index
node node from the data
_this reference of this
type rect or circle

initMargins(data)

Initializes the sizes of the margins of the chart
Source:
Parameters:
Name Type Description
data

initSVG()

Initializes the SVG
Source:

initSVGDimensions(data)

Initializes the SVG dimensions
Source:
Parameters:
Name Type Description
data

preview(reset)

Shows the preview information when hovering above the elements of the chart
Source:
Parameters:
Name Type Description
reset

previewIntersections(reset)

Shows the preview intersections when hovering above or clicking on a circle
Source:
Parameters:
Name Type Description
reset true if the preview has to be reset

resetAllFilterDimensions()

Resets all the filter dimensions for all charts
Overrides:
Source:

resetFilterDimensionOnDescriptionKey(index)

Reset filter on crossfilter dimension
Overrides:
Source:
Parameters:
Name Type Description
index of data because dimension is unsorted index index of dimension if chart is cat list

resetFiltered()

Resets filtered status of entry
Overrides:
Source:

setFilteredData()

Resets value if selected
Overrides:
Source:

showFilterButton(show)

Show filter button
Overrides:
Source:
Parameters:
Name Type Description
show true || false

sortData()

Sorts the data labels in lexicographical order
Source:

sortDataByReference()

Sorts data by a reference array of keys
Overrides:
Source:

update()

Updated the displayed information of the aggreset-chart
Source:

updateData(preview, reset_preview)

Updates the data when filtering over the charts
Overrides:
Source:
Parameters:
Name Type Description
preview true when the preview data has to be updated
reset_preview true when the updated preview data has to be reset

updateIntersections(max)

Updates the intersections by adding and removing circles or resizing them
Source:
Parameters:
Name Type Description
max the maximum size of a single genre

updateLegend(max)

Updates the legend of the circles according to the max value
Source:
Parameters:
Name Type Description
max the maximum value

updateRows()

Updates the lines and labels in the aggreset chart if they are hovered and selected
Source:

updateStatistic()

Updates statistics about the pairs that have common intersections
Source: