AyReference

public enum AyReference : Encodable

Indicates in what coordinates the tail of the annotation (ax,ay) is specified.

If set to a ay axis id (e.g. ay or ay2), the ay position refers to a ay coordinate. If set to paper, the ay position refers to the distance from the bottom of the plotting area in normalized coordinates where 0 (1) corresponds to the bottom (top). If set to a ay axis ID followed by domain (separated by a space), the position behaves like for paper, but refers to the distance in fractions of the domain length from the bottom of the domain of that axis: e.g., ay2 domain refers to the domain of the second ay axis and a ay position of 0.5 refers to the point between the bottom and the top of the domain of the second ay axis. In order for absolute positioning of the arrow to work, ayref must be exactly the same as yref, otherwise ayref will revert to pixel (explained next). For relative positioning, ayref can be set to pixel, in which case the ay value is specified in pixels relative to y. Absolute positioning is useful for trendline annotations which should continue to indicate the correct trend when zoomed. Relative positioning is useful for specifying the text offset for an annotated point.

  • Undocumented

    Declaration

    Swift

    case pixel
  • Undocumented

    Declaration

    Swift

    case yAxis(YAxis)
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws