单军华
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//
//  PNScatterChart.h
//  PNChartDemo
//
//  Created by Alireza Arabi on 12/4/14.
//  Copyright (c) 2014 kevinzhow. All rights reserved.
//
 
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import "PNChartDelegate.h"
#import "PNGenericChart.h"
#import "PNScatterChartData.h"
#import "PNScatterChartDataItem.h"
 
@interface PNScatterChart : PNGenericChart
 
@property (nonatomic, retain) id<PNChartDelegate> delegate;
 
/** Array of `ScatterChartData` objects, one for each line. */
@property (nonatomic) NSArray *chartData;
 
/** Controls whether to show the coordinate axis. Default is NO. */
@property (nonatomic, getter = isShowCoordinateAxis) BOOL showCoordinateAxis;
@property (nonatomic) UIColor *axisColor;
@property (nonatomic) CGFloat axisWidth;
 
/** String formatter for float values in x-axis/y-axis labels. If not set, defaults to @"%1.f" */
@property (nonatomic, strong) NSString *xLabelFormat;
@property (nonatomic, strong) NSString *yLabelFormat;
 
/** Default is true. */
@property (nonatomic) BOOL showLabel;
 
/** Default is 18-point Avenir Medium. */
@property (nonatomic) UIFont  *descriptionTextFont;
 
/** Default is white. */
@property (nonatomic) UIColor *descriptionTextColor;
 
/** Default is black, with an alpha of 0.4. */
@property (nonatomic) UIColor *descriptionTextShadowColor;
 
/** Default is CGSizeMake(0, 1). */
@property (nonatomic) CGSize   descriptionTextShadowOffset;
 
/** Default is 1.0. */
@property (nonatomic) NSTimeInterval duration;
 
@property (nonatomic) CGFloat AxisX_minValue;
@property (nonatomic) CGFloat AxisX_maxValue;
 
@property (nonatomic) CGFloat AxisY_minValue;
@property (nonatomic) CGFloat AxisY_maxValue;
 
- (void) setAxisXWithMinimumValue:(CGFloat)minVal andMaxValue:(CGFloat)maxVal toTicks:(int)numberOfTicks;
- (void) setAxisYWithMinimumValue:(CGFloat)minVal andMaxValue:(CGFloat)maxVal toTicks:(int)numberOfTicks;
- (void) setAxisXLabel:(NSArray *)array;
- (void) setAxisYLabel:(NSArray *)array;
- (void) setup;
- (void) drawLineFromPoint : (CGPoint) startPoint ToPoint : (CGPoint) endPoint WithLineWith : (CGFloat) lineWidth AndWithColor : (UIColor*) color;
 
/**
 * Update Chart Value
 */
 
- (void)updateChartData:(NSArray *)data;
 
@end