new Partition()
Partition
Describes a partitioning of the data, based on the values a Facet can take.
- Source:
Members
(static) facetId :string
The ID of the facet to partition over
Type:
- string
- Source:
(static) groupingContinuous :number
Grouping strategy:
fixednfixed number of bins in the interval [minval, maxval]fixedsca fixed binsize, centered on zerofixedsa fixed binsize, starting at zerologfixed number of bins but on a logarithmic scale Don't use directly but check grouping via the groupFixedN, groupFixedSC, groupFixedS, and groupLog properties
Type:
- number
- Source:
(static) groupingParam :number
Extra parameter used in the grouping strategy: either the number of bins, or the bin size.
Type:
- number
- Source:
(static) groupingTimeFormat :string
Formatting string for displaying of datetimes
Type:
- string
- Source:
(static) groupingTimeResolution :string
Time is grouped by truncating; the groupingTimeResolution parameter sets the resolution. See this table for accpetable values when using a crossfilter dataset.
Type:
- string
- Source:
(static) groups :Array.<Group>
The (ordered) set of groups this Partition can take, making up this partition. Used for plotting
Type:
- Array.<Group>
- Source:
(static) maxval :number|moment
For continuous or datetime Facets, the maximum value. Values higher than this are grouped to 'missing'
Type:
- number | moment
- Source:
(static) minval :number|moment
For continuous or datetime Facets, the minimum value. Values lower than this are grouped to 'missing'
Type:
- number | moment
- Source:
(static) rank :number
When part of a partitioning, this deterimines the ordering
Type:
- number
- Source:
(static) selected :array
Depending on the type of partition, this can be an array of the selected groups, or a numberic interval [start, end]
Type:
- array
- Source:
(static) type :string
Type of this partition:
constantA constant value of "1" for all data itemscontinuousThe facet takes on real numberscategorialThe facet is a string, or an array of strings (for labels and tags)datetimeThe facet is a datetime (using momentjs) Determined by the facet, and automatically set on updateSelection()
Type:
- string
- Source:
Methods
(static) setGroups(partition)
Setup the partition.groups()
Parameters:
| Name | Type | Description |
|---|---|---|
partition |
Partition |
- Source: