iOS/iPhone/iPad 圖表和圖形組件:EChart

jopen 10年前發布 | 32K 次閱讀 EChart iOS開發 移動開發

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.baiduhome.net/lib/view/home/1387846947828

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!