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