value(atY:as:)
Returns the data value at the given y position, or nil if the position does not correspond to a valid Y value.
Declaration
func value<P>(atY position: CGFloat, as: P.Type = P.self) -> P? where P : PlottableParameters
- position:
The position at which to obtain the y data value. It should be relative to the plot.
Return Value
The data value at the given position.