From 7b02207537d35bfa1714bf8beafc921f717d100a Mon Sep 17 00:00:00 2001
From: 单军华
Date: Wed, 11 Jul 2018 10:47:42 +0800
Subject: [PATCH] 首次上传

---
 screendisplay/screendisplay/Classes/ThirdClass/JHChart/JHLineChart.h |  202 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 202 insertions(+), 0 deletions(-)

diff --git a/screendisplay/screendisplay/Classes/ThirdClass/JHChart/JHLineChart.h b/screendisplay/screendisplay/Classes/ThirdClass/JHChart/JHLineChart.h
new file mode 100755
index 0000000..322bbd0
--- /dev/null
+++ b/screendisplay/screendisplay/Classes/ThirdClass/JHChart/JHLineChart.h
@@ -0,0 +1,202 @@
+//
+//  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) NSMutableArray * xLineDataArr;
+
+
+/**
+ *  Y axis scale data of a broken line graph, the proposed use of NSNumber or the number of strings
+ */
+@property (nonatomic, strong) NSMutableArray * yLineDataArr;
+
+
+/**
+ *  An array of values that are about to be drawn.
+ */
+@property (nonatomic, strong) NSMutableArray * 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;
+
+/**
+    XY������������������������
+ */
+@property (assign, nonatomic) CGFloat xyFontSize;
+
+/**
+ *  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;
+
+
+/**
+ *  ������Y������������������
+ */
+- (void)updateYScale;
+
+-(void)clearLine;
+
+@end

--
Gitblit v1.8.0