iOS/iPhone/iPad 图表和图形组件:EChart

jopen 11年前

EChart是一个iOS/iPhone/iPad 中的一个高度可扩展、易于使用的图表和图形组件。具有动态增长的动画效果,支持点击或者长按事件。
用法:

Step 1

Download project here

And Drag /EChart/ folder into your project

Step 2

Import the head file:

#import "EColumnChart.h"

Make your ViewController adopts the EColumnChart's protocal:

@interface YourViewController : UIViewController 

Declare a EColumnChart instance:

@property (strong, nonatomic) EColumnChart *eColumnChart;

Step 3

Give your EColumnChart a nice frame:

_eColumnChart = [[EColumnChart alloc] initWithFrame:CGRectMake(40, 100, 250, 200)];

Set EColumnChart's delegate and dataSource to your ViewController:

[_eColumnChart setDelegate:self];  [_eColumnChart setDataSource:self];

Add EColumnChart to wherever you want:

[self.view addSubview:_eColumnChart];

iOS/iPhone/iPad 图表和图形组件:EChart

项目主页:http://www.open-open.com/lib/view/home/1387846947828