Connection¶
Connection mark displays each data item as a curve that connects two points. The mark can be used to display structural variation and interactions, for example.
Still under development
Connection mark does not currently support details on demand (tooltips). Also, the parameterization is likely to be changed a bit to support more use cases.
Channels¶
In addition to the standard position channels and
color
and opacity
channels, connection mark supports the following channels:
height
-
Type: Number
If the
y
andy2
are equal or left undefined, the connections are rendered as arcs. The height channel specifies their heights. size
-
Type: Number
Stroke width of the starting point in pixels.
size2
-
Type: Number
Stroke width of the end point in pixels. Same as
size
if left undefined. color2
-
Type: Number
Color of the end point. Same as
color
if left undefined.
Properties¶
segments
-
Type: Number
Number of segments in the bézier curve. Affects the rendering quality and speed.
Default value:
101
Examples¶
More channels¶
When the y
and y2
channels are unequal, the height is ignored and only the
x-axis is zoomed.