ShapedMarkerLine
public struct ShapedMarkerLine : Encodable
Undocumented
-
Sets thelinecolor.
It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to
line.cmin
andline.cmax
if set.Declaration
Swift
public var coloring: Coloring?
-
Determines whether or not the color domain is computed with respect to the input data (here in
line.color
) or the bounds set inline.cmin
andline.cmax
Has an effect only if inline.color
is set to a numerical array.Defaults to
false
whenline.cmin
andline.cmax
are set by the user.Declaration
Swift
public var cAuto: Bool?
-
Sets the lower bound of the color domain.
Has an effect only if in
line.color
is set to a numerical array. Value should have the same units as inline.color
and if set,line.cmax
must be set as well.Declaration
Swift
public var cMin: Double?
-
Sets the upper bound of the color domain.
Has an effect only if in
line.color
is set to a numerical array. Value should have the same units as inline.color
and if set,line.cmin
must be set as well.Declaration
Swift
public var cMax: Double?
-
Sets the mid-point of the color domain by scaling
line.cmin
and/orline.cmax
to be equidistant to this point.Has an effect only if in
line.color
is set to a numerical array. Value should have the same units as inline.color
. Has no effect whenline.cauto
isfalse
.Declaration
Swift
public var cMiddle: Double?
-
Sets the colorscale.
Has an effect only if in
line.color
is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example,[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]
. To control the bounds of the colorscale in color space, useline.cmin
andline.cmax
. Alternatively,colorscale
may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.Declaration
Swift
public var colorScale: ColorScale?
-
Determines whether the colorscale is a default palette (
autocolorscale: true
) or the palette determined byline.colorscale
.Has an effect only if in
line.color
is set to a numerical array. In casecolorscale
is unspecified orautocolorscale
is true, the default palette will be chosen according to whether numbers in thecolor
array are all positive, all negative or mixed.Declaration
Swift
public var autoColorScale: Bool?
-
Reverses the color mapping if true.
Has an effect only if in
line.color
is set to a numerical array. If true,line.cmin
will correspond to the last color in the array andline.cmax
will correspond to the first color.Declaration
Swift
public var reverseScale: Bool?
-
Determines whether or not a colorbar is displayed for this trace.
Has an effect only if in
line.color
is set to a numerical array.Declaration
Swift
public var showScale: Bool?
-
Undocumented
Declaration
Swift
public var colorBar: ColorBar?
-
Sets a reference to a shared color axis.
References to these shared color axes are coloraxis, coloraxis2, coloraxis3, etc. Settings for these shared color axes are set in the layout, under
layout.coloraxis
,layout.coloraxis2
, etc. Note that multiple color scales can be linked to the same color axis.Declaration
Swift
public var colorAxis: ColorAxis
-
Sets the shape of the paths.
If
See morelinear
, paths are composed of straight lines. Ifhspline
, paths are composed of horizontal curved splinesDeclaration
Swift
public enum Shape : String, Encodable
-
Sets the shape of the paths.
If
linear
, paths are composed of straight lines. Ifhspline
, paths are composed of horizontal curved splinesDeclaration
Swift
public var shape: Shape?
-
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
andprobability
. 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?
-
init(coloring:
cAuto: cMin: cMax: cMiddle: colorScale: autoColorScale: reverseScale: showScale: colorBar: colorAxis: shape: hoverTemplate: ) Creates
ShapedMarkerLine
object with specified properties.Declaration
Swift
public init(coloring: Coloring? = nil, cAuto: Bool? = nil, cMin: Double? = nil, cMax: Double? = nil, cMiddle: Double? = nil, colorScale: ColorScale? = nil, autoColorScale: Bool? = nil, reverseScale: Bool? = nil, showScale: Bool? = nil, colorBar: ColorBar? = nil, colorAxis: ColorAxis = .preset, shape: Shape? = nil, hoverTemplate: String? = nil)
Parameters
coloring
Sets thelinecolor.
cAuto
Determines whether or not the color domain is computed with respect to the input data (here in
line.color
) or the bounds set inline.cmin
andline.cmax
Has an effect only if inline.color
is set to a numerical array.cMin
Sets the lower bound of the color domain.
cMax
Sets the upper bound of the color domain.
cMiddle
Sets the mid-point of the color domain by scaling
line.cmin
and/orline.cmax
to be equidistant to this point.colorScale
Sets the colorscale.
autoColorScale
Determines whether the colorscale is a default palette (
autocolorscale: true
) or the palette determined byline.colorscale
.reverseScale
Reverses the color mapping if true.
showScale
Determines whether or not a colorbar is displayed for this trace.
colorBar
colorAxis
Sets a reference to a shared color axis.
shape
Sets the shape of the paths.
hoverTemplate
Template string used for rendering the information that appear on hover box.