From 8e680a1593ca22c8d3fb8a79180f06df4c4ca681 Mon Sep 17 00:00:00 2001 From: 单军华 <WindShan@danjunhuas-MacBook-Pro.local> Date: Wed, 22 Feb 2017 16:07:22 +0800 Subject: [PATCH] 相册拍照图片分享demo --- JHChart/JHChartDemo/JHShowController.m | 36 ++++++++++++++++++++---------------- 1 files changed, 20 insertions(+), 16 deletions(-) diff --git a/JHChart/JHChartDemo/JHShowController.m b/JHChart/JHChartDemo/JHShowController.m index 62ef732..44275ce 100755 --- a/JHChart/JHChartDemo/JHShowController.m +++ b/JHChart/JHChartDemo/JHShowController.m @@ -80,31 +80,35 @@ /* The scale value of the X axis can be passed into the NSString or NSNumber type and the data structure changes with the change of the line chart type. The details look at the document or other quadrant X axis data source sample.*/ - lineChart.xLineDataArr = @[@"0",@"1",@"2",@3,@4,@5,@6,@7]; + lineChart.xLineDataArr = @[@"10",@"11",@"12",@13,@14,@15,@16,@17]; /* The different types of the broken line chart, according to the quadrant division, different quadrant correspond to different X axis scale data source and different value data source. */ lineChart.lineChartQuadrantType = JHLineChartQuadrantTypeFirstQuardrant; - lineChart.valueArr = @[@[@"1",@"12",@"1",@6,@4,@9,@6,@7],@[@"3",@"1",@"2",@16,@2,@3,@5,@10]]; -// lineChart.showYLevelLine = YES; + lineChart.lineWidth = 3.0; + + lineChart.valueArr = @[@[@"11",@"112",@"11",@16,@14,@19,@16,@17]]; + /* ������������������������������*/ + //lineChart.showYLevelLine = YES; + /* * whether this chart shows leading lines for value point or not,default is YES ������������������������������*/ lineChart.showValueLeadingLine = NO; - /* Line Chart colors */ - lineChart.valueLineColorArr =@[ [UIColor purpleColor], [UIColor brownColor]]; - /* Colors for every line chart*/ - lineChart.pointColorArr = @[[UIColor orangeColor],[UIColor yellowColor]]; - /* color for XY axis */ - lineChart.xAndYLineColor = [UIColor blackColor]; - /* XY axis scale color */ - lineChart.xAndYNumberColor = [UIColor blueColor]; + /* Line Chart colors ������������ */ + lineChart.valueLineColorArr =@[[UIColor redColor]]; + /* Colors for every line chart ������������������*/ + lineChart.pointColorArr = @[[UIColor whiteColor]]; + /* color for XY axis XY������������������*/ + lineChart.xAndYLineColor = [UIColor whiteColor]; + /* XY axis scale color XY������������������������*/ + lineChart.xAndYNumberColor = [UIColor whiteColor]; /* Dotted line color of the coordinate point */ - lineChart.positionLineColorArr = @[[UIColor blueColor],[UIColor greenColor]]; - /* Set whether to fill the content, the default is False */ - lineChart.contentFill = YES; + lineChart.positionLineColorArr = @[[UIColor whiteColor]]; + /* Set whether to fill the content, the default is False ������������������������������ */ + lineChart.contentFill = NO; /* Set whether the curve path */ lineChart.pathCurve = YES; - /* Set fill color array */ - lineChart.contentFillColorArr = @[[UIColor colorWithRed:0.500 green:0.000 blue:0.500 alpha:0.468],[UIColor colorWithRed:0.500 green:0.214 blue:0.098 alpha:0.468]]; + /* Set fill color array ��������������������������������� */ + lineChart.contentFillColorArr = @[[UIColor whiteColor]]; [self.view addSubview:lineChart]; /* Start animation */ [lineChart showAnimation]; -- Gitblit v1.8.0