{"id":18839770,"url":"https://github.com/maximbilan/ios-pie-chart","last_synced_at":"2025-04-14T07:00:25.788Z","repository":{"id":13546813,"uuid":"16238741","full_name":"maximbilan/iOS-Pie-Chart","owner":"maximbilan","description":"iOS Pie Chart","archived":false,"fork":false,"pushed_at":"2018-09-21T13:29:50.000Z","size":130,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T20:44:24.253Z","etag":null,"topics":["chart","ios","ios-pie-chart","objective-c","ui","ui-components","ui-design","uikit"],"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/maximbilan.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-01-25T20:01:44.000Z","updated_at":"2023-11-06T02:35:05.000Z","dependencies_parsed_at":"2022-09-04T09:52:02.751Z","dependency_job_id":null,"html_url":"https://github.com/maximbilan/iOS-Pie-Chart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximbilan%2FiOS-Pie-Chart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximbilan%2FiOS-Pie-Chart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximbilan%2FiOS-Pie-Chart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximbilan%2FiOS-Pie-Chart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maximbilan","download_url":"https://codeload.github.com/maximbilan/iOS-Pie-Chart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837285,"owners_count":21169374,"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":["chart","ios","ios-pie-chart","objective-c","ui","ui-components","ui-design","uikit"],"created_at":"2024-11-08T02:44:00.794Z","updated_at":"2025-04-14T07:00:25.761Z","avatar_url":"https://github.com/maximbilan.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"iOS Pie Chart\n=============\n\nA pie chart control.\u003cbr\u003e\n![alt tag](https://raw.github.com/maximbilan/ios_pie_chart/master/img/img1.png)\n\n## Installation\n\nAdd to your project the next source files: \u003cbr\u003e\n\u003cpre\u003e\nChart.h\nChart.m\nChartData.h\nChartData.m\nChartView.h\nChartView.m\nLegendCellView.h\nLegendCellView.m\nLegendView.h\nLegendView.m\nNSString+Chart.h\nNSString+Chart.m\nUIColor+Chart.h\nUIColor+Chart.m\n\u003c/pre\u003e\n\n## How to use\n\nYou can add view in the \u003ci\u003eInterface Builder\u003c/i\u003e and set a class to \u003ci\u003eChart\u003c/i\u003e or create in the code: \u003cbr\u003e\n\u003cpre\u003e\nChart *chart = [[Chart alloc] initWithFrame:CGRectMake(0, 256, 256, 256)];\n[self.view addSubview:chart];\n\u003c/pre\u003e\nFor adding chart data, you can use the following code: \u003cbr\u003e\n\u003cpre\u003e\nNSMutableArray *array = [[NSMutableArray alloc] init];\n    \nfloat total;\nfor (NSInteger groupIndex = 0; groupIndex \u0026#60; 5; ++groupIndex) {\n  [array removeAllObjects];\n  total = 0.0;\n  for (NSInteger itemIndex = 0; itemIndex \u0026#60; 10; ++itemIndex) {\n    ChartItem *item = [[ChartItem alloc] init];\n    item.name = [NSString stringWithFormat:@\"Item %d\", itemIndex];\n    item.value = RAND_FROM_TO(1, 500);\n    total += item.value;\n    [array addObject:item];\n  }\n  [self.chart setData:array withKey:[NSString stringWithFormat:@\"Group %d\", groupIndex+1] withTotal:total];\n}\n\u003c/pre\u003e\nFor scrolling datasets just tap on the chart.\n\u003cbr\u003e\nIf you have one set of data, and you won't scroll them, use the following property:\n\u003cpre\u003e\n@property BOOL isScrollEnabled;\n\u003c/pre\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximbilan%2Fios-pie-chart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaximbilan%2Fios-pie-chart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximbilan%2Fios-pie-chart/lists"}