Skip to content

mengzhiqc/multipointCurv

Repository files navigation

multipointCurv

bezier multipoints curv

How To Install

If you havn't used cocoapods, please visit [http://cocoapods.org/] to learn the basic usage.

  • step1. execute pod init in 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

How To Use

  • 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

Alt Result

  • we have provided some delegate so that you can change color and some other properties of chart view
    - (NSArray *)dataSourceOfcurvChartView:(DBMultiPointCurvChartView *)curvChartView;

About

bezier multipoints curv

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published