单军华
2017-03-03 764722d0366346dc435aa906abdd25655e3b0769
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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