bezier multipoints curv
If you havn't used cocoapods, please visit [http://cocoapods.org/] to learn the basic usage.
- step1. execute
pod initin your command line and open your Podfile - step2. add
pod 'DB',:git=>'https://github.com/mengzhiqc/multipointCurv.git'in your Podfile - step3. execute
pod install
-
import the header file
#import "DBMultiPointCurvChartView.h"
-
init barChartView and set delegate to current view controller
DBMultiPointCurvChartView *curv = [[DBMultiPointCurvChartView alloc]initWithFrame:CGRectMake(20, 20, 320, 400)];
curv.dataSource = self;
curv.backgroundColor = [UIColor whiteColor];
please don't forget to add DBMultiPointCurvDataSource in your header file.
- add this view as subview
[self.view addSubview:curv];
- result as follow
- we have provided some delegate so that you can change color and some other properties of chart view
- (NSArray *)dataSourceOfcurvChartView:(DBMultiPointCurvChartView *)curvChartView;
