AxReference

public enum AxReference : Encodable

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

If set to a ax axis id (e.g. ax or ax2), the ax position refers to a ax coordinate. If set to paper, the ax position refers to the distance from the left of the plotting area in normalized coordinates where 0 (1) corresponds to the left (right). If set to a ax 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 left of the domain of that axis: e.g., ax2 domain refers to the domain of the second ax axis and a ax position of 0.5 refers to the point between the left and the right of the domain of the second ax axis. In order for absolute positioning of the arrow to work, axref must be exactly the same as xref, otherwise axref will revert to pixel (explained next). For relative positioning, axref can be set to pixel, in which case the ax value is specified in pixels relative to x. 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 xAxis(XAxis)
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws