ParallelCategories
public struct ParallelCategories : Trace, DomainSubplot
Parallel categories diagram for multidimensional categorical data.
-
Corresponding Plotly trace type.
Declaration
Swift
public let type: String
-
Switch indicating whether the trace supports animation of its data.
Declaration
Swift
public static var animatable: Bool { get }
-
Determines whether or not this trace is visible.
If legendonly, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible).
Declaration
Swift
public var visible: Visible?
-
Sets the trace name.
The trace name appear as the legend item and on hover.
Declaration
Swift
public var name: String?
-
Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
Declaration
Swift
public var uid: String?
-
Assigns extra meta information associated with this trace that can be used in various text attributes.
Attributes such as trace
name
, graph, axis and colorbartitle.text
, annotationtext
rangeselector
,updatemenues
andsliders
label
text all supportmeta
. To access the tracemeta
values in an attribute in the same trace, simply use%{meta[i]}
wherei
is the index or key of themeta
item in question. To access tracemeta
in layout attributes, use%{data[n[.meta[i]}
wherei
is the index or key of themeta
andn
is the trace index. -
Undocumented
Declaration
Swift
public var stream: Stream?
-
Undocumented
Declaration
Swift
public var transforms: [Transform]
-
Controls persistence of some user-driven changes to the trace:
constraintrange
inparcoords
traces, as well as someeditable: true
modifications such asname
andcolorbar.title
.Defaults to
layout.uirevision
. Note that other user-driven trace attribute changes are controlled bylayout
attributes:trace.visible
is controlled bylayout.legend.uirevision
,selectedpoints
is controlled bylayout.selectionrevision
, andcolorbar.(x|y)
(accessible withconfig: {editable: true}
) is controlled bylayout.editrevision
. Trace changes are tracked byuid
, which only falls back on trace index if nouid
is provided. So if your app can add/remove traces before the end of thedata
array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auid
that stays with it as it moves.Declaration
Swift
public var uiRevision: Anything?
-
Declaration
Swift
public var domain: Domain?
-
Determines which trace information appear on hover.
If
See morenone
orskip
are set, no information is displayed upon hovering. But, ifnone
is set, click and hover events are still fired.Declaration
Swift
public struct HoverInfo : OptionSet, Encodable
-
Determines which trace information appear on hover.
If
none
orskip
are set, no information is displayed upon hovering. But, ifnone
is set, click and hover events are still fired.Declaration
Swift
public var hoverInfo: HoverInfo?
-
Sets the hover interaction mode for the parcats diagram.
If
See morecategory
, hover interaction take place per category. Ifcolor
, hover interactions take place per color per category. Ifdimension
, hover interactions take place across all categories per dimension.Declaration
Swift
public enum HoverOn : String, Encodable
-
Sets the hover interaction mode for the parcats diagram.
If
category
, hover interaction take place per category. Ifcolor
, hover interactions take place per color per category. Ifdimension
, hover interactions take place across all categories per dimension.Declaration
Swift
public var hoverOn: HoverOn?
-
Template string used for rendering the information that appear on hover box.
Note that this will override
hoverinfo
. Variables are inserted using %{variable}, for example “y: %{y}”. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time-format#locale_format for details on the date formatting syntax. The variables available inhovertemplate
are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that arearrayOk: true
) are available. variablescount
,probability
,category
,categorycount
,colorcount
andbandcolorcount
. Anything contained in tag<extra>
is displayed in the secondary box, for example “{fullData.name} ”. To hide the secondary box completely, use an empty tag<extra></extra>
.Declaration
Swift
public var hoverTemplate: String?
-
Sets the drag interaction mode for categories and dimensions.
If
See moreperpendicular
, the categories can only move along a line perpendicular to the paths. Iffreeform
, the categories can freely move on the plane. Iffixed
, the categories and dimensions are stationary.Declaration
Swift
public enum Arrangement : String, Encodable
-
Sets the drag interaction mode for categories and dimensions.
If
perpendicular
, the categories can only move along a line perpendicular to the paths. Iffreeform
, the categories can freely move on the plane. Iffixed
, the categories and dimensions are stationary.Declaration
Swift
public var arrangement: Arrangement?
-
Sort paths so that like colors are bundled together within each category.
Declaration
Swift
public var bundleColors: Bool?
-
Sets the path sorting algorithm.
If
See moreforward
, sort paths based on dimension categories from left to right. Ifbackward
, sort paths based on dimensions categories from right to left.Declaration
Swift
public enum SortPaths : String, Encodable
-
Sets the path sorting algorithm.
If
forward
, sort paths based on dimension categories from left to right. Ifbackward
, sort paths based on dimensions categories from right to left.Declaration
Swift
public var sortPaths: SortPaths?
-
Sets the font for the
dimension
labels.Declaration
Swift
public var labelFont: Font?
-
Sets the font for the
category
labels.Declaration
Swift
public var tickFont: Font?
-
The dimensions (variables) of the parallel categories diagram.
See moreDeclaration
Swift
public struct Dimension : Encodable
-
Undocumented
Declaration
Swift
public var dimensions: [Dimension]?
-
Undocumented
See moreDeclaration
Swift
public struct ShapedMarkerLine : Encodable
-
Undocumented
Declaration
Swift
public var line: ShapedMarkerLine?
-
The number of observations represented by each state.
Defaults to 1 so that each state represents one observation
Declaration
Swift
public var counts: Data<Double>?
-
Creates
ParallelCategories
object from the most frequently used properties.Declaration
Swift
public init(name: String? = nil, line: ShapedMarkerLine? = nil)
Parameters
name
Sets the trace name.
line
-
init(visible:
name: uid: meta: stream: transforms: uiRevision: domain: hoverInfo: hoverOn: hoverTemplate: arrangement: bundleColors: sortPaths: labelFont: tickFont: dimensions: line: counts: ) Creates
ParallelCategories
object with specified properties.Declaration
Swift
public init(visible: Visible? = nil, name: String? = nil, uid: String? = nil, meta: Data<Anything>? = nil, stream: Stream? = nil, transforms: [Transform] = [], uiRevision: Anything? = nil, domain: Domain? = nil, hoverInfo: HoverInfo? = nil, hoverOn: HoverOn? = nil, hoverTemplate: String? = nil, arrangement: Arrangement? = nil, bundleColors: Bool? = nil, sortPaths: SortPaths? = nil, labelFont: Font? = nil, tickFont: Font? = nil, dimensions: [Dimension]? = nil, line: ShapedMarkerLine? = nil, counts: Data<Double>? = nil)
Parameters
visible
Determines whether or not this trace is visible.
name
Sets the trace name.
uid
Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
meta
Assigns extra meta information associated with this trace that can be used in various text attributes.
stream
transforms
uiRevision
Controls persistence of some user-driven changes to the trace:
constraintrange
inparcoords
traces, as well as someeditable: true
modifications such asname
andcolorbar.title
.domain
hoverInfo
Determines which trace information appear on hover.
hoverOn
Sets the hover interaction mode for the parcats diagram.
hoverTemplate
Template string used for rendering the information that appear on hover box.
arrangement
Sets the drag interaction mode for categories and dimensions.
bundleColors
Sort paths so that like colors are bundled together within each category.
sortPaths
Sets the path sorting algorithm.
labelFont
Sets the font for the
dimension
labels.tickFont
Sets the font for the
category
labels.dimensions
line
counts
The number of observations represented by each state.
-
Encodes the object in a format compatible with Plotly.
Declaration
Swift
public func encode(to encoder: Encoder) throws