Chart

Chart

Chart class

Constructor

new Chart()

Source:

Methods

checkIfDataIsFiltered()

Checks if the data has been filtered
Source:

filterDimensionOnDescriptionKey(index, match)

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

resetAllFilterDimensions()

Resets all the filter dimensions for all charts
Source:

resetFilterDimensionOnDescriptionKey(index)

Reset filter on crossfilter dimension
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
Source:

setFilteredData()

Resets value if selected
Source:

showFilterButton(show)

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

sortDataByReference()

Sorts data by a reference array of keys
Source:

updateData(preview, reset_preview)

Updates the data when filtering over the charts
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