| Slider | Control |
|---|---|
![]() |
![]() |
To run the example project.
| Ring | Line |
|---|---|
![]() |
![]() |
pod 'ORCharts'pod 'ORCharts/Ring' pod 'ORCharts/Line' 1、 Drag an UIView object to ViewController Scene
2、 Change the Custom Class to ORLineChartView or ORRingChartView
3、 Link dataSource and delegate to the ViewController
@property (nonatomic, strong) ORRingChartView *ringChartView;_ringChartView = [[ORRingChartView alloc] initWithFrame:CGRectMake(0, 0, 375, 375)];
_ringChartView.dataSource = self;
[self.view addSubview:_ringChartView];```objc @property (nonatomic, strong) ORLineChartView *lineChartView; ``` ```objc _lineChartView = [[ORLineChartView alloc] initWithFrame:CGRectMake(0, 0, 375, 350)]; _lineChartView.dataSource = self; _lineChartView.delegate = self; [self.view addSubview:_lineChartView]; ```
reloadData when data or config changed, see more usage and config in example
[_ringChartView reloadData];[_lineChartView reloadData];Refer to the Example Or Click the link below
ORCharts is available under the MIT license. See the LICENSE file for more info.




