单军华
2017-02-22 8e680a1593ca22c8d3fb8a79180f06df4c4ca681
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
//
//  JHLineChart.h
//  JHChartDemo
//
//  Created by cjatech-简豪 on 16/4/10.
//  Copyright © 2016年 JH. All rights reserved.
//
 
#import <UIKit/UIKit.h>
#import "JHChart.h"
 
/**
 *  Line chart type, has been abandoned
 */
typedef  NS_ENUM(NSInteger,JHLineChartType){
 
    JHChartLineEveryValueForEveryX=0, /*        Default         */
    JHChartLineValueNotForEveryX
};
 
 
 
/**
 *  Distribution type of line graph
 */
typedef NS_ENUM(NSInteger,JHLineChartQuadrantType){
    
    /**
     *  The line chart is distributed in the first quadrant.
     */
    JHLineChartQuadrantTypeFirstQuardrant,
    
    /**
     *  The line chart is distributed in the first two quadrant
     */
    JHLineChartQuadrantTypeFirstAndSecondQuardrant,
    
    /**
     *  The line chart is distributed in the first four quadrant
     */
    JHLineChartQuadrantTypeFirstAndFouthQuardrant,
    
    /**
     *  The line graph is distributed in the whole quadrant
     */
    JHLineChartQuadrantTypeAllQuardrant
    
    
};
 
 
 
/****************************华丽的分割线***********************************/
 
 
 
@interface JHLineChart :JHChart
 
/**
 *  X axis scale data of a broken line graph, the proposed use of NSNumber or the number of strings
 */
@property (nonatomic, strong) NSArray * xLineDataArr;
 
 
/**
 *  Y axis scale data of a broken line graph, the proposed use of NSNumber or the number of strings
 */
@property (nonatomic, strong) NSArray * yLineDataArr;
 
 
/**
 *  An array of values that are about to be drawn.
 */
@property (nonatomic, strong) NSArray * valueArr;
 
 
/**
 *  The type of broken line graph has been abandoned.
 */
@property (assign , nonatomic) JHLineChartType  lineType ;
 
 
/**
 *  The quadrant of the specified line chart
 */
@property (assign, nonatomic) JHLineChartQuadrantType  lineChartQuadrantType;
 
 
/**
 *  Line width (the value of non drawn path width, only refers to the X, Y axis scale line width)
 */
@property (assign, nonatomic) CGFloat lineWidth;
 
 
/**
 *  To draw the line color of the target
 */
@property (nonatomic, strong) NSArray * valueLineColorArr;
 
 
/**
 *  X, Y axis line color
 */
@property (nonatomic, strong) UIColor * xAndYLineColor;
 
 
/**
 *  Color for each value draw point
 */
@property (nonatomic, strong) NSArray * pointColorArr;
 
 
/**
 *  Y, X axis scale numerical color
 */
@property (nonatomic, strong) UIColor * xAndYNumberColor;
 
 
/**
 *  Draw dotted line color
 */
@property (nonatomic, strong) NSArray * positionLineColorArr;
 
 
 
/**
 *  Draw the text color of the information.
 */
@property (nonatomic, strong) NSArray * pointNumberColorArr;
 
 
 
/**
 *  Value path is required to draw points
 */
@property (assign,  nonatomic) BOOL hasPoint;
 
 
 
/**
 *  Draw path line width
 */
@property (nonatomic, assign) CGFloat animationPathWidth;
 
 
/**
 *  Drawing path is the curve, the default NO
 */
@property (nonatomic, assign) BOOL pathCurve;
 
 
/**
 *  Whether to fill the contents of the drawing path, the default NO
 */
@property (nonatomic, assign) BOOL contentFill;
 
 
/**
 *  Draw path fill color, default is grey
 */
@property (nonatomic, strong) NSArray * contentFillColorArr;
 
 
/**
 *  whether this chart shows the Y line or not.Default is YES
 */
@property (nonatomic,assign) BOOL showYLine;
 
 
/**
 *  whether this chart shows the Y level lines or not.Default is NO
 */
@property (nonatomic,assign) BOOL showYLevelLine;
 
/**
 *  whether this chart shows leading lines for value point or not,default is YES
 */
@property (nonatomic,assign) BOOL showValueLeadingLine;
 
/**
 *  Custom initialization method
 *
 *  @param frame         frame
 *  @param lineChartType Abandoned
 *
 */
-(instancetype)initWithFrame:(CGRect)frame
            andLineChartType:(JHLineChartType)lineChartType;
 
 
 
@end