Server side filtering
Implementation of a dataset backed by a server, which in turn uses fi. postgreSQL Fully asynchronous, based on socketIO.
Most methods below result in a message with the methodName and a data object, containing:
datasetsanddataview, ordatasetfilterIdorfacetId
Data can be requested using the dataview.getData() method
responds with a newData message containing filterId and data.
- Source:
Methods
(inner) getData(dataview) → {Promise}
Get data for every filter, and trigger a 'newData' event
Returns a Promise that resolves to the dataview when all data and metadata has been updated
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
dataview |
Dataview
|
Returns:
- Type:
-
Promise
(inner) initDataFilter(dataview, filter)
Initialize the data filter, and construct the getData callback function on the filter.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
dataview |
Dataview
|
|
filter |
Filter
|
(inner) releaseDataFilter(filter)
The opposite or initDataFilter, it should remove the filter and deallocate other configuration related to the filter.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
filter |
Filter
|
(inner) scan(dataset)
Autoconfigure a dataset
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
dataset |
Dataset
|
(inner) setCategories(dataset, facet)
setCategories finds finds all values on an ordinal (categorial) axis Updates the categorialTransform of the facet
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
dataset |
Dataset
|
|
facet |
Facet
|
(inner) setMinMax(dataset, facet)
setMinMax sets the range of a continuous or time facet
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
dataset |
Dataset
|
|
facet |
Facet
|
(inner) setPercentiles(dataset, facet)
Calculate 100 percentiles (ie. 1,2,3,4 etc.), and initialize the facet.continuousTransform
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
dataset |
Dataset
|
|
facet |
Facet
|
(inner) updateDataFilter(filter)
Change the filter parameters for an initialized filter
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
filter |
Filter
|