{"id":15037466,"url":"https://github.com/ridvank/rkpiechart","last_synced_at":"2025-04-09T23:24:02.510Z","repository":{"id":62452032,"uuid":"102027279","full_name":"ridvank/RKPieChart","owner":"ridvank","description":"Pie Chart written in Swift 3","archived":false,"fork":false,"pushed_at":"2017-09-03T06:14:40.000Z","size":512,"stargazers_count":71,"open_issues_count":7,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-19T22:16:37.007Z","etag":null,"topics":["chart","pie","piechart","round","swift3","table"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/ridvank.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":"2017-08-31T17:35:16.000Z","updated_at":"2024-04-19T03:57:40.000Z","dependencies_parsed_at":"2022-11-01T23:34:21.357Z","dependency_job_id":null,"html_url":"https://github.com/ridvank/RKPieChart","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ridvank%2FRKPieChart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ridvank%2FRKPieChart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ridvank%2FRKPieChart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ridvank%2FRKPieChart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ridvank","download_url":"https://codeload.github.com/ridvank/RKPieChart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248127072,"owners_count":21052166,"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","pie","piechart","round","swift3","table"],"created_at":"2024-09-24T20:34:41.978Z","updated_at":"2025-04-09T23:24:02.455Z","avatar_url":"https://github.com/ridvank.png","language":"Swift","readme":"![RKPieChart: Super easy Pie Chart](https://github.com/ridvank/RKPieChart/blob/development/Screenshots/Screen%20Shot%202017-09-02%20at%2020.04.28.png)\n\n[![Cocoapod](http://img.shields.io/cocoapods/v/RKPieChart.svg?style=flat)](http://cocoadocs.org/docsets/RKPieChart/)\n[![CI Status](http://img.shields.io/travis/ridvank/RKPieChart.svg?style=flat)](https://travis-ci.org/ridvank/RKPieChart)\n[![Version](https://img.shields.io/cocoapods/v/RKPieChart.svg?style=flat)](http://cocoapods.org/pods/RKPieChart)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://raw.githubusercontent.com/ridvank/RKPieChart/master/LICENSE)\n[![Platform](http://img.shields.io/badge/platform-ios-lightgrey.svg?style=flat)](https://developer.apple.com/resources/)\n[![Language](https://img.shields.io/badge/swift-3.1-orange.svg)](https://developer.apple.com/swift)\n\nRKPieChart is super easy pie chart view written in Swift 3.\n\n### Screenshots\n\n\u003cp align=\"center\" imgContainer = \"left\"\u003e\n\u003cimg src =\"https://github.com/ridvank/RKPieChart/blob/development/Screenshots/chartView1.png\" width=\"20%\" height=\"20%\"/\u003e\n\u003cimg src =\"https://github.com/ridvank/RKPieChart/blob/development/Screenshots/chartView4.png\" width=\"20%\" height=\"20%\"/\u003e\n\u003cimg src =\"https://github.com/ridvank/RKPieChart/blob/development/Screenshots/chartView2.png\" width=\"20%\" height=\"20%\"/\u003e\n\u003cimg src =\"https://github.com/ridvank/RKPieChart/blob/development/Screenshots/chartView5.png\" width=\"20%\" height=\"20%\"/\u003e\n\u003c/p\u003e\n\n### Animations\n![0](https://github.com/ridvank/RKPieChart/blob/development/Screenshots/firstVideo.gif)\n![1](https://github.com/ridvank/RKPieChart/blob/development/Screenshots/multipleValue.gif)\n\n## Initalization\n\nFirst of all single or multiple RKPieChartItem should be created. ```ratio``` and ```color``` are required but ```title``` variable is optional on init method.\n```swift\nlet firstItem: RKPieChartItem = RKPieChartItem(ratio: 50, color: .orange, title: \"1️⃣th Item \")\nlet secondItem: RKPieChartItem = RKPieChartItem(ratio: 30, color: .gray, title: \"2️⃣nd Item\")\nlet thirdItem: RKPieChartItem = RKPieChartItem(ratio: 20, color: .yellow, title: \"3️⃣th Item\")\n```\nInitalization is also simple; ```items``` variable is required and ```centerTitle``` variable is optional.\n```swift\nlet chartView = RKPieChartView(items: [firstItem, secondItem, thirdItem], centerTitle: \"I am title 🕶\")\n```\nYou can change background color of the pie chart circle:\n```swift\nchartView.circleColor = .green\n```\nTo change the arc width of the chart:\n```swift\nchartView.arcWidth = 60\n```\nYou can also give indensity to the chart by updating ```isIntensityActivated``` variable. ```false``` is the default behaviour.\n```swift\nchartView.isIntensityActivated = true\n```\nYou can update the style of the pie chart. 3 types supported. ```butt```,```square``` and ```round```. If you have 1 item to show you can choose all of them. However If you have multiple item ```round``` and ```square``` not supported.\n```swift\nchartView.style = .butt\n```\nYou can hide the ```RKPieChart``` item title if you want by using:\n```swift\nchartView.isTitleViewHidden = false\n```\nYou can animate ```RKPieChart``` view if you want by using:\n```swift\nchartView.isAnimationActivated = true\n```\nDefault type is ```false``` which means no animation will be executed.\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n\n* Xcode 8\n* iOS 9.0+\n\n## Installation\n\nRKPieChart is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"RKPieChart\"\n```\n\n## Author\n\nRidvan Kuccuk, ridvankuccuk@gmail.com\n\n## License\n\nRKPieChart is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fridvank%2Frkpiechart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fridvank%2Frkpiechart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fridvank%2Frkpiechart/lists"}