Group

Group

new Group()

A Group represents a value a Facet can take using a partitioning. For continuous or time facets, it represents an interval. For categorial facets, it is a single label.

The Facet.groups collection is used for plotting, to deterime the postion along the axis. Selections can be updated using a Group.

Source:

Extends

Members

(static) count :number

Number of times this transform is used

Source:
Type:
  • number

(static) groupIndex :number

Index, cached version of groups.models.indexOf(group)

Source:
Type:
  • number

(static) label :string

Label for display

Source:
Type:
  • string

(static) max :number|moment

For continuous, datetime, or duration facets. Upper limit of interval

Source:
Type:
  • number | moment

(static) min :number|moment

For continuous, datetime, or duration facets. Lower limit of interval

Source:
Type:
  • number | moment

(static) value :string|number

A value guaranteed to be in this group, used to check if this group is currently selected. moments and durations should be stored as moment.format() and duration.toISOString()

Source:
Type:
  • string | number