EncodingSortField

@JSType
trait EncodingSortField[F] extends StObject with _Sort[F]
Companion
object
trait _Sort[F]
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete fields

@ExposedJSMember @JSOptional
var field: UndefOr[F]

The data field to sort by.

The data field to sort by.

Default value: If unspecified, defaults to the field specified in the outer data reference.

@ExposedJSMember @JSOptional
var op: UndefOr[NonArgAggregateOp]

An aggregate operation to perform on the field prior to sorting (e.g., "count", "mean" and "median"). An aggregation is required when there are multiple values of the sort field for each encoded data field. The input data objects will be aggregated, grouped by the encoded data field.

An aggregate operation to perform on the field prior to sorting (e.g., "count", "mean" and "median"). An aggregation is required when there are multiple values of the sort field for each encoded data field. The input data objects will be aggregated, grouped by the encoded data field.

For a full list of operations, please see the documentation for aggregate.

Default value: "sum" for stacked plots. Otherwise, "min".

@ExposedJSMember @JSOptional
var order: UndefOr[SortOrder | Null]

The sort order. One of "ascending" (default), "descending", or null (no not sort).

The sort order. One of "ascending" (default), "descending", or null (no not sort).