{"id":13743218,"url":"https://github.com/michalkonturek/GraphKit","last_synced_at":"2025-05-09T00:32:57.061Z","repository":{"id":13832676,"uuid":"16529473","full_name":"michalkonturek/GraphKit","owner":"michalkonturek","description":"A lightweight library of animated graphs for iOS.","archived":false,"fork":false,"pushed_at":"2017-01-21T15:59:23.000Z","size":591,"stargazers_count":952,"open_issues_count":14,"forks_count":90,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-04-16T11:08:20.637Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michalkonturek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-04T23:36:17.000Z","updated_at":"2025-01-17T15:53:24.000Z","dependencies_parsed_at":"2022-09-03T23:52:49.041Z","dependency_job_id":null,"html_url":"https://github.com/michalkonturek/GraphKit","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalkonturek%2FGraphKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalkonturek%2FGraphKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalkonturek%2FGraphKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalkonturek%2FGraphKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michalkonturek","download_url":"https://codeload.github.com/michalkonturek/GraphKit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253171166,"owners_count":21865275,"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-08-03T05:00:42.705Z","updated_at":"2025-05-09T00:32:56.748Z","avatar_url":"https://github.com/michalkonturek.png","language":"Objective-C","funding_links":[],"categories":["Objective-C  Stars 1000以内排名整理"],"sub_categories":[],"readme":"# GraphKit\n\n[![License MIT](https://img.shields.io/badge/contact-@MichalKonturek-blue.svg?style=flat)](http://twitter.com/michalkonturek)\n[![License MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/michalkonturek/GraphKit/blob/master/LICENSE)\n[![CocoaPods](https://img.shields.io/cocoapods/v/GraphKit.svg?style=flat)](https://github.com/michalkonturek/GraphKit)\n\n\nA lightweight library of animated charts for iOS. \n\n\n## License\n\nSource code of this project is available under the standard MIT license. Please see [the license file][LICENSE].\n\n[PODS]:http://cocoapods.org/\n[LICENSE]:https://github.com/michalkonturek/GraphKit/blob/master/LICENSE\n\n\n## Usage\n\nTo see a quick demo, simply type `pod try GraphKit`.\n\n### Bar Graph\n\n![Build Platform](images/bar-graph.png)\n\nInitialize `GKBarGraph` from nib or programmatically:\n\n```objc\nCGRect frame = CGRectMake(0, 40, 320, 200);\nself.graphView = [[GKBarGraph alloc] initWithFrame:frame];\n```\n\nthen set `GKGraphViewDataSource` \n\n```objc\nself.graphView.dataSource = self;\n```\n\nand call `draw` method.\n\n```objc\n[self.graphView draw];\n```\n\n\nPlease see [example][BAR].\n\n[BAR]:https://github.com/michalkonturek/GraphKit/blob/master/GraphKit/Example/ExampleBarGraphVC.m\n\n\n#### `GKBarGraphDataSource` Protocol\n\n```objc\n@required\n- (NSInteger)numberOfBars;\n- (NSNumber *)valueForBarAtIndex:(NSInteger)index;\n\n@optional\n- (UIColor *)colorForBarAtIndex:(NSInteger)index;\n- (UIColor *)colorForBarBackgroundAtIndex:(NSInteger)index;\n- (CFTimeInterval)animationDurationForBarAtIndex:(NSInteger)index;\n- (NSString *)titleForBarAtIndex:(NSInteger)index;\n```\n\n\n### Line Graph\n\n![Build Platform](images/line-graph.png)\n\n```objc\nCGRect frame = CGRectMake(0, 40, 320, 200);\nself.graphView = [[GKLineGraph alloc] initWithFrame:frame];\n\nself.graph.dataSource = self;\nself.graph.lineWidth = 3.0;\n\n[self.graph draw];\n```\n\nPlease see [example][LINE].\n\n[LINE]:https://github.com/michalkonturek/GraphKit/blob/master/GraphKit/Example/ExampleLineGraph.m\n\n\n#### `GKLineGraphDataSource` Protocol\n\n```objc\n@required\n- (NSInteger)numberOfLines;\n- (UIColor *)colorForLineAtIndex:(NSInteger)index;\n- (NSArray *)valuesForLineAtIndex:(NSInteger)index;\n\n@optional\n- (CFTimeInterval)animationDurationForLineAtIndex:(NSInteger)index;\n- (NSString *)titleForLineAtIndex:(NSInteger)index;\n```\n\n## Contributing\n\n1. Fork it.\n2. Create your feature branch (`git checkout -b new-feature`).\n3. Commit your changes (`git commit -am 'Added new-feature'`).\n4. Push to the branch (`git push origin new-feature`).\n5. Create new Pull Request.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichalkonturek%2FGraphKit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichalkonturek%2FGraphKit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichalkonturek%2FGraphKit/lists"}