{"id":854,"url":"https://github.com/TBXark/TKRadarChart","last_synced_at":"2025-08-06T13:31:56.978Z","repository":{"id":45705447,"uuid":"63231474","full_name":"TBXark/TKRadarChart","owner":"TBXark","description":"A customizable radar chart  in Swift","archived":false,"fork":false,"pushed_at":"2023-04-11T05:40:36.000Z","size":596,"stargazers_count":210,"open_issues_count":7,"forks_count":29,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-12-01T16:42:31.462Z","etag":null,"topics":["carthage","chart","cocoapods","radar-chart","swift"],"latest_commit_sha":null,"homepage":"https://tbxark.com","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/TBXark.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-07-13T09:05:29.000Z","updated_at":"2024-08-18T20:07:35.000Z","dependencies_parsed_at":"2024-01-29T16:57:54.861Z","dependency_job_id":"5db31518-daae-4502-aaca-a9416213ed46","html_url":"https://github.com/TBXark/TKRadarChart","commit_stats":{"total_commits":36,"total_committers":3,"mean_commits":12.0,"dds":"0.38888888888888884","last_synced_commit":"f20b930d60e5b734aa8606682d5453778e333b99"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TBXark%2FTKRadarChart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TBXark%2FTKRadarChart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TBXark%2FTKRadarChart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TBXark%2FTKRadarChart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TBXark","download_url":"https://codeload.github.com/TBXark/TKRadarChart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228905435,"owners_count":17989764,"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":["carthage","chart","cocoapods","radar-chart","swift"],"created_at":"2024-01-05T20:15:33.053Z","updated_at":"2024-12-09T14:30:40.807Z","avatar_url":"https://github.com/TBXark.png","language":"Swift","funding_links":[],"categories":["Charts","Libs","Swift","UI","UI and SwiftUI","Chart [🔝](#readme)"],"sub_categories":["Chart","Other free courses","Getting Started"],"readme":"# TKRadarChart\n\u003e A customizable radar chart in Swift\n\n![Xcode 9.0+](https://img.shields.io/badge/Xcode-9.0%2B-blue.svg)\n![iOS 8.0+](https://img.shields.io/badge/iOS-8.0%2B-blue.svg)\n![Swift 4.0+](https://img.shields.io/badge/Swift-4.0%2B-orange.svg)\n[![Build Status](https://travis-ci.org/TBXark/TKRadarChart.svg?branch=master)](https://travis-ci.org/TBXark/TKRadarChart)\n[![CocoaPods](http://img.shields.io/cocoapods/v/TKRadarChart.svg?style=flat)](http://cocoapods.org/?q=TKRadarChart)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![License MIT](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://raw.githubusercontent.com/TBXark/TKRadarChart/master/LICENSE)\n\n\n![](DemoImage/example.png)\n\n## Requirements\n\n- iOS 8.0+\n- Xcode 9.0\n- Swift 4.0\n\n## Installation\n\n#### CocoaPods\nYou can use [CocoaPods](http://cocoapods.org/) to install `TKRadarChart` by adding it to your `Podfile`:\n\n```ruby\nplatform :ios, '8.0'\nuse_frameworks!\npod 'TKRadarChart'\n```\n\nTo get the full benefits import `TKRadarChart` wherever you import UIKit\n\n``` swift\nimport UIKit\nimport TKRadarChart\n```\n#### Carthage\nCreate a `Cartfile` that lists the framework and run `carthage update`. Follow the [instructions](https://github.com/Carthage/Carthage#if-youre-building-for-ios) to add `$(SRCROOT)/Carthage/Build/iOS/TKRadarChart.framework` to an iOS project.\n\n```ruby\ngithub \"tbxark/TKRadarChart\"\n```\n#### Manually\n1. Download and drop ```TKRadarChart.swift``` in your project.  \n2. Congratulations!  \n\n## Usage example\n\n### Base\n\n|Base|Description|Demo|\n|---|---|---|\n|Step|Background polygon laps(min 1)|![image](DemoImage/origin.png) ![image](DemoImage/step.png)|\n|Row|Number of edges of polygon (min 3)|![image](DemoImage/origin.png) ![image](DemoImage/row.png)|\n|Section|At the same time show the number of data|![image](DemoImage/origin.png) ![image](DemoImage/section.png)|\n\n### TKRadarChartConfig\n\nThis structure is used for custom charts\n\n```swift\n    var radius: CGFloat    \n    var minValue: CGFloat\n    var maxValue: CGFloat\n\n    var showPoint: Bool\n    var showBorder: Bool\n    var fillArea: Bool\n    var clockwise: Bool\n    var autoCenterPoint: Bool\n```\n\n### TKRadarChartDataSource\n\nThis protocol represents the data model object. as such, it supplies no information about appearance\n\n```swift\nprotocol TKRadarChartDataSource: class {\n    func numberOfStepForRadarChart(_ radarChart: TKRadarChart) -\u003e Int\n    func numberOfRowForRadarChart(_ radarChart: TKRadarChart) -\u003e Int\n    func numberOfSectionForRadarChart(_ radarChart: TKRadarChart) -\u003e Int\n\n    func titleOfRowForRadarChart(_ radarChart: TKRadarChart, row: Int) -\u003e String\n    func valueOfSectionForRadarChart(withRow row: Int, section: Int) -\u003e CGFloat\n}\n```\n\n### TKRadarChartDelegate\n\nThis represents the display and behaviour of the TKRadarChart.\n\n```swift\nprotocol TKRadarChartDelegate: class {\n    func colorOfTitleForRadarChart(_ radarChart: TKRadarChart) -\u003e UIColor\n    func colorOfLineForRadarChart(_ radarChart: TKRadarChart) -\u003e UIColor\n    func colorOfFillStepForRadarChart(_ radarChart: TKRadarChart, step: Int) -\u003e UIColor\n\n    func colorOfSectionFillForRadarChart(_ radarChart: TKRadarChart, section: Int) -\u003e UIColor\n    func colorOfSectionBorderForRadarChart(_ radarChart: TKRadarChart, section: Int) -\u003e UIColor\n}\n```\n\n\n## Release History\n\n* 1.4.3 \n  Upgrade to swift 4.2\n\n* 1.4.2\n  Fix bugs that can not change the title font\n\n* 1.4.1 \n  Fix warnign\n\n* 1.4.0\n  Upgrade to swift 4.0\n\n* 1.3.1\n  Upgrade framework config\n    \n* 1.3.0\n  Support swift 3.0\n\n* 1.0.1\n  Complete basic functions, add Cocoapod and Carthage support\n\n## Contribute\n\nWe would love for you to contribute to **TKRadarChart**, check the ``LICENSE`` file for more info.\n\n## Meta\n\nTBXark – [@tbxark](https://twitter.com/tbxark) – tbxark@outlook.com\n\nDistributed under the MIT license. See ``LICENSE`` for more information.\n\n[https://github.com/TBXark](https://github.com/TBXark)\n\n[swift-image]:https://img.shields.io/badge/swift-3.0-orange.svg\n[swift-url]: https://swift.org/\n[license-image]: https://img.shields.io/badge/License-MIT-blue.svg\n[license-url]: LICENSE\n[travis-image]: https://img.shields.io/travis/dbader/node-datadog-metrics/master.svg?style=flat-square\n[travis-url]: https://travis-ci.org/dbader/node-datadog-metrics\n[codebeat-image]: https://codebeat.co/badges/c19b47ea-2f9d-45df-8458-b2d952fe9dad\n[codebeat-url]: https://codebeat.co/projects/github-com-vsouza-awesomeios-com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTBXark%2FTKRadarChart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTBXark%2FTKRadarChart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTBXark%2FTKRadarChart/lists"}