新版本
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
//
|
||||
// PNScatterChartDataItem.m
|
||||
// PNChartDemo
|
||||
//
|
||||
// Created by Alireza Arabi on 12/4/14.
|
||||
// Copyright (c) 2014 kevinzhow. All rights reserved.
|
||||
//
|
||||
|
||||
#import "PNScatterChartDataItem.h"
|
||||
|
||||
@interface PNScatterChartDataItem ()
|
||||
|
||||
- (id)initWithX:(CGFloat)x AndWithY:(CGFloat)y;
|
||||
|
||||
@property (readwrite) CGFloat x; // should be within the x range
|
||||
@property (readwrite) CGFloat y; // should be within the y range
|
||||
|
||||
@end
|
||||
|
||||
@implementation PNScatterChartDataItem
|
||||
|
||||
+ (PNScatterChartDataItem *)dataItemWithX:(CGFloat)x AndWithY:(CGFloat)y
|
||||
{
|
||||
return [[PNScatterChartDataItem alloc] initWithX:x AndWithY:y];
|
||||
}
|
||||
|
||||
- (id)initWithX:(CGFloat)x AndWithY:(CGFloat)y
|
||||
{
|
||||
if ((self = [super init])) {
|
||||
self.x = x;
|
||||
self.y = y;
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user