new Partition()
Partition
Describes a partitioning of the data, based on the values a Facet can take.
- Source:
Extends
Members
(static) facetName :string
The ID of the facet to partition over
- Source:
Type:
-
string
(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
- Source:
Type:
-
number
(static) groupingParam :number
Extra parameter used in the grouping strategy: either the number of bins, or the bin size.
- Source:
Type:
-
number
(static) groups :Array.<Group>
The (ordered) set of groups this Partition can take, making up this partition. Used for plotting
- Source:
Type:
-
Array.<Group>
(static) maxval :number|moment
For continuous or datetime Facets, the maximum value. Values higher than this are grouped to 'missing'
- Source:
Type:
-
number|moment
(static) minval :number|moment
For continuous or datetime Facets, the minimum value. Values lower than this are grouped to 'missing'
- Source:
Type:
-
number|moment
(static) ordering :number|moment
For categorial and text Facets, the ordering can be alfabetical or by count
- Source:
Type:
-
number|moment
(static) rank :number
When part of a partitioning, this deterimines the ordering
- Source:
Type:
-
number
(static) selected :array
Depending on the type of partition, this can be an array of the selected groups, or a numberic interval [start, end]
- Source:
Type:
-
array
(static) showLabel :string
Show an axis label for this partition
- Source:
Type:
-
string
(static) showLegend :string
Show a legend for this partition
- Source:
Type:
-
string
Methods
(static) setGroups(partition)
Setup the partition.groups()
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
partition |
Partition
|