position(forY:)
Returns the y position for the given data value, or nil if the y scale is unavailable or if the data value is invalid. The returned position is relative to the plot.
Declaration
func position<P>(forY value: P) -> CGFloat? where P : PlottableParameters
- value:
A data value.
Return Value
The position corresponding to the data value.