{"id":858,"url":"https://github.com/dadalar/DDSpiderChart","last_synced_at":"2025-07-30T19:32:55.850Z","repository":{"id":56907317,"uuid":"89964873","full_name":"dadalar/DDSpiderChart","owner":"dadalar","description":"Easy to use Spider (Radar) Chart library for iOS written in Swift.","archived":false,"fork":false,"pushed_at":"2024-08-30T15:12:02.000Z","size":1654,"stargazers_count":92,"open_issues_count":1,"forks_count":11,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-24T01:42:09.885Z","etag":null,"topics":["chart","ios","radar-chart","spider-chart","swift","swift-3","swift4"],"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/dadalar.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":"2017-05-01T21:33:13.000Z","updated_at":"2024-11-20T03:57:06.000Z","dependencies_parsed_at":"2024-04-21T18:11:32.264Z","dependency_job_id":null,"html_url":"https://github.com/dadalar/DDSpiderChart","commit_stats":{"total_commits":18,"total_committers":4,"mean_commits":4.5,"dds":0.4444444444444444,"last_synced_commit":"d9b3391d4aff5de9af54258ce22fbc1bb06034a9"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dadalar%2FDDSpiderChart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dadalar%2FDDSpiderChart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dadalar%2FDDSpiderChart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dadalar%2FDDSpiderChart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dadalar","download_url":"https://codeload.github.com/dadalar/DDSpiderChart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228178962,"owners_count":17881114,"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","radar-chart","spider-chart","swift","swift-3","swift4"],"created_at":"2024-01-05T20:15:33.163Z","updated_at":"2024-12-04T19:32:13.088Z","avatar_url":"https://github.com/dadalar.png","language":"Swift","funding_links":[],"categories":["Charts"],"sub_categories":["Other free courses","Getting Started"],"readme":"# DDSpiderChart\n\n[![CI Status](http://img.shields.io/travis/dadalar/DDSpiderChart.svg?style=flat)](https://travis-ci.org/dadalar/DDSpiderChart)\n[![Version](https://img.shields.io/cocoapods/v/DDSpiderChart.svg?style=flat)](http://cocoapods.org/pods/DDSpiderChart)\n[![License](https://img.shields.io/cocoapods/l/DDSpiderChart.svg?style=flat)](http://cocoapods.org/pods/DDSpiderChart)\n[![Platform](https://img.shields.io/cocoapods/p/DDSpiderChart.svg?style=flat)](http://cocoapods.org/pods/DDSpiderChart)\n\nEasy to use Spider (Radar) Chart library for iOS written in Swift.\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/dadalar/DDSpiderChart/master/Screenshots/sample1.png\" width=\"280\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/dadalar/DDSpiderChart/master/Screenshots/sample2.png\" width=\"280\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/dadalar/DDSpiderChart/master/Screenshots/sample3.png\" width=\"280\"\u003e\n\u003cimg src=\"/Screenshots/sample-movie.gif\" width=\"280\"\u003e\n\u003c/p\u003e\n\n## Requirements\n\n- iOS 11.0+ / macOS 11.10+ / tvOS 11.0+ / watchOS 9.0+\n- Xcode 12.0+\n- Swift 3.0+\n- SwiftUI 14+\n\n## Installation\n\n### CocoaPods\n\nDDSpiderChart is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"DDSpiderChart\"\n```\n\n#### Swift Package Manager\n\nThe [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the swift compiler.\nOnce you have your Swift package set up, adding TKRadarChart as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift.\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/dadalar/DDSpiderChart\", .upToNextMajor(from: \"0.6\"))\n]\n```\n\n## Usage\n\n### Styling in Interface Builder\n\nYou can use DDSpiderChartView within Interface Builder. Just drag \u0026 drop a UIView and set its class to DDSpiderChartView. The library supports IBDesignable protocol, so you will see your customized chart in Xcode. \n\n\u003cimg src=\"https://raw.githubusercontent.com/dadalar/DDSpiderChart/master/Screenshots/interface_builder.png\" width=\"400\"\u003e\n\n### Programmatically\n\nTo create a new instance of the chart:\n```swift\nlet spiderChartView = DDSpiderChartView(frame: .zero) // Replace with some frame or add constraints\nspiderChartView.axes = [\"Axis 1\", \"Axis 2\", \"Axis 3\", \"Axis 4\"] // Set axes by giving their labels\nspiderChartView.addDataSet(values: [1.0, 0.5, 0.75, 0.6], color: .red) // Add first data set\nspiderChartView.addDataSet(values: [0.9, 0.7, 0.75, 0.7], color: .blue) // Add second data set\n```\n\nTo create a new instance of the chart in SwiftUI:\n```swift\nDDSpiderChart(\n    axes: [\"Axis 1\", \"Axis 2\", \"Axis 3\", \"Axis 4\"],\n    values: [\n        DDSpiderChartEntries(values: [1.0, 0.5, 0.75, 0.6], color: .red),\n        DDSpiderChartEntries(values: [0.9, 0.7, 0.75, 0.7], color: .blue),\n    ],\n    fontTitle: .boldSystemFont(ofSize: 16),\n    textColor: .black\n).frame(width: 300, height: 300)\n```\n\nTo remove a data set from chart:\n```swift\nlet dataSet1 = spiderChartView.addDataSet(values: [0.9, 0.7, 0.75, 0.7], color: .blue) // Add second data set\n// Later\nspiderChartView.removeDataSetView(dataSet!)\n```\n\nCustomization:\n```swift\nspiderChartView.color = .white // This will change the color of the circles\nspiderChartView.circleCount = 20 // How many circles there will be\nspiderChartView.circleGap = 5 // The distance between circles\n// circleCount * circleGap would be the radius of the chart itself\n```\n\nText Styling: (It just works by passing an array of NSAttributedString's as axes. You have a lot flexibility this way.)\n```swift\n// Custom font with custom size \u0026 color example\nfunc attributedAxisLabel(_ label: String) -\u003e NSAttributedString {\n  let attributedString = NSMutableAttributedString()\n  attributedString.append(NSAttributedString(string: label, attributes: [NSAttributedStringKey.foregroundColor: UIColor.black, NSAttributedStringKey.font: UIFont(name: \"AvenirNextCondensed-Bold\", size: 16)!]))\n  return attributedString\n}\n    \noverride func viewDidLoad() {\n  super.viewDidLoad()\n  spiderChartView.axes = [\"PAS\", \"DRI\", \"SPD\", \"DEF\", \"PHY\", \"SHT\"].map { attributedAxisLabel($0) }\n}\n```\n\n## Author\n\nDeniz Adalar, me@dadalar.net\n\n\n## Contributors\n\nPablo Ruan, pabloruan@outlook.com (SwiftUI, SPM)\n\n## License\n\nDDSpiderChart is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdadalar%2FDDSpiderChart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdadalar%2FDDSpiderChart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdadalar%2FDDSpiderChart/lists"}