Error
public struct Error : Encodable
Note
Used byScatter<XData, YData>.xError
, Scatter<XData, YData>.yError
, Bar<XData,
YData>.xError
, Bar<XData, YData>.yError
, Histogram<XData, YData>.xError
, Histogram<XData,
YData>.yError
, Scatter3D<XData, YData, ZData>.xError
, Scatter3D<XData, YData,
ZData>.yError
, Scatter3D<XData, YData, ZData>.zError
, ScatterGL<XData, YData>.xError
,
ScatterGL<XData, YData>.yError
.
-
Determines whether or not this set of error bars is visible.
Declaration
Swift
public var visible: Bool?
-
Determines the rule used to generate the error bars.
If constant
See more, the bar lengths are of a constant value. Set this constant in
value`. If *percent, the bar lengths correspond to a percentage of underlying data. Set this percentage invalue
. If sqrt, the bar lengths correspond to the square of the underlying data. If data, the bar lengths are set with data setarray
.Declaration
Swift
public enum Error.`Type` : String, Encodable
-
Determines the rule used to generate the error bars.
If constant
, the bar lengths are of a constant value. Set this constant in
value`. If *percent, the bar lengths correspond to a percentage of underlying data. Set this percentage invalue
. If sqrt, the bar lengths correspond to the square of the underlying data. If data, the bar lengths are set with data setarray
.Declaration
Swift
public var type: Type?
-
Determines whether or not the error bars have the same length in both direction (top/bottom for vertical bars, left/right for horizontal bars.
Declaration
Swift
public var symmetric: Bool?
-
Sets the data corresponding the length of each error bar.
Values are plotted relative to the underlying data.
Declaration
Swift
public var array: [Double]?
-
Sets the data corresponding the length of each error bar in the bottom (left) direction for vertical (horizontal) bars Values are plotted relative to the underlying data.
Declaration
Swift
public var arrayMinus: [Double]?
-
Undocumented
Declaration
Swift
public var traceReference: Int?
-
Undocumented
Declaration
Swift
public var traceReferenceMinus: Int?
-
Sets the stoke color of the error bars.
Declaration
Swift
public var color: Color?
-
Sets the thickness (in px) of the error bars.
Declaration
Swift
public var thickness: Double?
-
Sets the width (in px) of the cross-bar at both ends of the error bars.
Declaration
Swift
public var width: Double?
-
init(visible:
type: symmetric: array: arrayMinus: value: valueMinus: traceReference: traceReferenceMinus: color: thickness: width: ) Creates
Error
object with specified properties.Declaration
Swift
public init(visible: Bool? = nil, type: `Type`? = nil, symmetric: Bool? = nil, array: [Double]? = nil, arrayMinus: [Double]? = nil, value: Double? = nil, valueMinus: Double? = nil, traceReference: Int? = nil, traceReferenceMinus: Int? = nil, color: Color? = nil, thickness: Double? = nil, width: Double? = nil)
Parameters
visible
Determines whether or not this set of error bars is visible.
type
Determines the rule used to generate the error bars.
symmetric
Determines whether or not the error bars have the same length in both direction (top/bottom for vertical bars, left/right for horizontal bars.
array
Sets the data corresponding the length of each error bar.
arrayMinus
Sets the data corresponding the length of each error bar in the bottom (left) direction for vertical (horizontal) bars Values are plotted relative to the underlying data.
value
valueMinus
traceReference
traceReferenceMinus
color
Sets the stoke color of the error bars.
thickness
Sets the thickness (in px) of the error bars.
width
Sets the width (in px) of the cross-bar at both ends of the error bars.