{"id":842,"url":"https://github.com/zhuhuihuihui/EChart","last_synced_at":"2025-07-30T19:32:29.823Z","repository":{"id":12445113,"uuid":"15103807","full_name":"zhuhuihuihui/EChart","owner":"zhuhuihuihui","description":"iOS/iPhone/iPad Chart, Graph. Event handling and animation supported.","archived":false,"fork":false,"pushed_at":"2016-08-08T03:48:31.000Z","size":169,"stargazers_count":646,"open_issues_count":15,"forks_count":117,"subscribers_count":25,"default_branch":"master","last_synced_at":"2024-11-14T16:12:02.223Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhuhuihuihui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-11T09:57:56.000Z","updated_at":"2024-08-09T02:43:18.000Z","dependencies_parsed_at":"2022-09-14T19:00:24.535Z","dependency_job_id":null,"html_url":"https://github.com/zhuhuihuihui/EChart","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuhuihuihui%2FEChart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuhuihuihui%2FEChart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuhuihuihui%2FEChart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuhuihuihui%2FEChart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhuhuihuihui","download_url":"https://codeload.github.com/zhuhuihuihui/EChart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228178895,"owners_count":17881105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:15:32.718Z","updated_at":"2024-12-04T19:32:01.011Z","avatar_url":"https://github.com/zhuhuihuihui.png","language":"Objective-C","funding_links":[],"categories":["Charts","UI"],"sub_categories":["Other free courses","Getting Started"],"readme":"#EChart\nA highly **extendable**, easy to use chart with **event handling**, **animation** supported. \n\n\n[![](https://dl.dropboxusercontent.com/s/d2yxmmqa4yjigbu/eColumn.gif)](https://dl.dropboxusercontent.com/s/d2yxmmqa4yjigbu/eColumn.gif)\n\n[![](https://dl.dropboxusercontent.com/s/ehhscvf1m48v04h/eLine.gif)](https://dl.dropboxusercontent.com/s/ehhscvf1m48v04h/eLine.gif)\n\n[![](https://dl.dropboxusercontent.com/s/2we5ay0fv5jmc6y/ePie.gif)](https://dl.dropboxusercontent.com/s/2we5ay0fv5jmc6y/ePie.gif)\n\n\n##Test\n\n## How To Use\n\n#### Download and run the [EChartDemo](https://github.com/zhuhuihuihui/EChart/archive/master.zip) project is the best practice to know how to use EChart. \n\n### Step 1: Add EChart to Your Project\nuse [CocoaPods](http://cocoapods.org/) with **Podfile**:\n\n```ruby\nplatform :ios, '7.0'\npod \"EChart\"\n```\n\nor Download project [here](https://github.com/zhuhuihuihui/EChart)\n\nAnd Drag `/EChart/` folder into your project\n\n### Step 2: Include ECharts in your View Controller \n**EColumnChart** as a example, all ECharts work in a similar way.\n\nImport the head file:\n\n\t#import \"EColumnChart.h\"\n\t\nMake your ViewController adopts the EColumnChart's protocol:\n\n\t@interface YourViewController : UIViewController \u003cEColumnChartDelegate, EColumnChartDataSource\u003e\n\t\nDeclare a EColumnChart instance:\n\t\n\t@property (strong, nonatomic) EColumnChart *eColumnChart;\n\n### Step 3\nGive your EColumnChart a nice frame:\n\n\t_eColumnChart = [[EColumnChart alloc] initWithFrame:CGRectMake(40, 100, 250, 200)];\n\t\nSet EColumnChart's delegate and dataSource to your ViewController:\n\n\t[_eColumnChart setDelegate:self];\n    [_eColumnChart setDataSource:self];\n    \nAdd EColumnChart to wherever you want:\n\n    [self.view addSubview:_eColumnChart];\n    \n## Provide data \u0026 Get events\nAfter setting up your EColumnChart, you may need to provide the data for the EColumnChart and you will be able to get events from EColumnChart as well.\n\nIf you were a expert with `UITableView`, you will be quite familiar with the way `EColumnChart` works. Because they work in a same way.\n\n### DataSource  \nYou need to implement every method in the `EColumnChartDataSource`\n\n\t/** How many Columns are there in total.*/\n\t- (NSInteger) numberOfColumnsInEColumnChart:(EColumnChart *) eColumnChart;\n\n\t/** How many Columns should be presented on the screen each time*/\n\t- (NSInteger) numberOfColumnsPresentedEveryTime:(EColumnChart *) eColumnChart;\n\n\t/** The highest value among the whole chart*/\n\t- (EColumnDataModel *)     highestValueEColumnChart:(EColumnChart *) eColumnChart;\n\n\t/** Value for each column*/\n\t- (EColumnDataModel *)     eColumnChart:(EColumnChart *) eColumnChart\n                        valueForIndex:(NSInteger)index;\n                        \n### EColumnChartDelegate \nThe implementation of the Delegate is according to your needs\n\n\t/** When finger single taped the column*/\n\t- (void)        eColumnChart:(EColumnChart *) eColumnChart\n             didSelectColumn:(EColumn *) eColumn;\n\n\t/** When finger enter specific column, this is dif from tap*/\n\t- (void)        eColumnChart:(EColumnChart *) eColumnChart\n        fingerDidEnterColumn:(EColumn *) eColumn;\n\n\t/** When finger leaves certain column, will tell you which column you are leaving*/\n\t- (void)        eColumnChart:(EColumnChart *) eColumnChart\n        fingerDidLeaveColumn:(EColumn *) eColumn;\n\n\t/** When finger leaves wherever in the chart, will trigger both if finger is leaving from a column */\n\t- (void) fingerDidLeaveEColumnChart:(EColumnChart *)eColumnChart;\n\t\n\t\n#License\nEChart is available under the Apache License. See the LICENSE file for more info..\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhuhuihuihui%2FEChart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhuhuihuihui%2FEChart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhuhuihuihui%2FEChart/lists"}