AWFSeriesPoint
Objective-C
@interface AWFSeriesPoint : NSObject
Swift
class AWFSeriesPoint : NSObject
AWFSeriesPoint
represents a single data point on a graph within a series. The values for both x- and y-axis should be defined for the series
point to be valid.
-
The data value on the x-axis.
Declaration
Objective-C
@property (nonatomic) CGFloat x;
Swift
var x: CGFloat { get set }
-
The data value on the y-axis.
Declaration
Objective-C
@property (nonatomic) CGFloat y;
Swift
var y: CGFloat { get set }
-
Creates and returns an new empty
AWFSeriesPoint
instance.Declaration
Objective-C
+ (nonnull instancetype)point;
Return Value
The initialized instance
-
Creates and returns a new
AWFSeriesPoint
instance initialized with the specified x and y data values.Declaration
Objective-C
+ (nonnull instancetype)pointWithX:(CGFloat)x y:(CGFloat)y;
Swift
convenience init(x: CGFloat, y: CGFloat)
Parameters
x
The x value
y
The y value
Return Value
The instance initialized with the x and y values