Error

public struct Error : Encodable

Note

Used by Scatter<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, the bar lengths are of a constant value. Set this constant invalue`. If *percent, the bar lengths correspond to a percentage of underlying data. Set this percentage in value. If sqrt, the bar lengths correspond to the square of the underlying data. If data, the bar lengths are set with data set array.

    See more

    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 invalue`. If *percent, the bar lengths correspond to a percentage of underlying data. Set this percentage in value. If sqrt, the bar lengths correspond to the square of the underlying data. If data, the bar lengths are set with data set array.

    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]?
  • Sets the value of either the percentage (if type is set to percent) or the constant (if type is set to constant) corresponding to the lengths of the error bars.

    Declaration

    Swift

    public var value: Double?
  • Sets the value of either the percentage (if type is set to percent) or the constant (if type is set to constant) corresponding to the lengths of the error bars in the bottom (left) direction for vertical (horizontal) bars

    Declaration

    Swift

    public var valueMinus: 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?
  • 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

    Sets the value of either the percentage (if type is set to percent) or the constant (if type is set to constant) corresponding to the lengths of the error bars.

    valueMinus

    Sets the value of either the percentage (if type is set to percent) or the constant (if type is set to constant) corresponding to the lengths of the error bars in the bottom (left) direction for vertical (horizontal) bars

    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.