| | |
| | | |
| | | /* 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]; |