Sort

public struct Sort : Transform

Specification of sort operation on trace data.

See also

Documentation for Python, JavaScript or R
  • Determines whether this sort transform is enabled or disabled.

    Declaration

    Swift

    public var enabled: Bool?
  • Sets the target by which the sort transform is applied.

    If a string, target is assumed to be a reference to a data array in the parent trace object. To sort about nested variables, use . to access them. For example, set target to marker.size to sort about the marker size array. If an array, target is then the data array by which the sort transform is applied.

    Declaration

    Swift

    public var target: Data<String>?
  • Sets the sort transform order.

    See more

    Declaration

    Swift

    public enum Order : String, Encodable
  • Sets the sort transform order.

    Declaration

    Swift

    public var order: Order?
  • Creates Sort object with specified properties.

    Declaration

    Swift

    public init(enabled: Bool? = nil, target: Data<String>? = nil, order: Order? = nil)

    Parameters

    enabled

    Determines whether this sort transform is enabled or disabled.

    target

    Sets the target by which the sort transform is applied.

    order

    Sets the sort transform order.