Partition

Partition

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:

  • fixedn fixed number of bins in the interval [minval, maxval]
  • fixedsc a fixed binsize, centered on zero
  • fixeds a fixed binsize, starting at zero
  • log fixed 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:
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:

  • constant A constant value of "1" for all data items
  • continuous The facet takes on real numbers
  • categorial The facet is a string, or an array of strings (for labels and tags)
  • datetime The 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: