ClickToShow

public enum ClickToShow : Encodable

Makes this annotation respond to clicks on the plot.

If you click a data point that exactly matches the x and y values of this annotation, and it is hidden (visible: false), it will appear. In onoff mode, you must click the same point again to make it disappear, so if you click multiple points, you can show multiple annotations. In onout mode, a click anywhere else in the plot (on another data point or not) will hide this annotation. If you need to show/hide this annotation in response to different x or y values, you can set xclick and/or yclick. This is useful for example to label the side of a bar. To label markers though, standoff is preferred over xclick and yclick.

  • off

    Undocumented

    Declaration

    Swift

    case off
  • Undocumented

    Declaration

    Swift

    case onOff
  • Undocumented

    Declaration

    Swift

    case onOut
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws