{"id":848,"url":"https://github.com/drinkius/flowerchart","last_synced_at":"2025-07-30T19:32:25.385Z","repository":{"id":77218559,"uuid":"54341161","full_name":"drinkius/FlowerChart","owner":"drinkius","description":"Flower-like chart written in Swift","archived":false,"fork":false,"pushed_at":"2020-06-24T14:09:35.000Z","size":293,"stargazers_count":16,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-04T19:39:33.776Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drinkius.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-03-20T21:19:51.000Z","updated_at":"2023-02-21T03:26:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"400315da-943d-443b-8907-43f1a1e0f4ce","html_url":"https://github.com/drinkius/FlowerChart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/drinkius/FlowerChart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drinkius%2FFlowerChart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drinkius%2FFlowerChart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drinkius%2FFlowerChart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drinkius%2FFlowerChart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drinkius","download_url":"https://codeload.github.com/drinkius/FlowerChart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drinkius%2FFlowerChart/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267928985,"owners_count":24167431,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-01-05T20:15:32.869Z","updated_at":"2025-07-30T19:32:25.055Z","avatar_url":"https://github.com/drinkius.png","language":"Swift","funding_links":[],"categories":["Charts","UI"],"sub_categories":["Other free courses","Getting Started"],"readme":"# FlowerChart - custom chart written in Swift \n\u003e Fully vector flower-shaped chart written in Swift\n\n[![Swift Version][swift-image]][swift-url]\n[![License][license-image]][license-url]\n[![Platform](https://img.shields.io/cocoapods/p/LFAlertController.svg?style=flat)](http://cocoapods.org/pods/LFAlertController)\n\nFlower-shaped chart written in Swift, this repo is a sample project you can build directly on your iPhone. The charts generated are fully vector and scale without any rasterization and annying pixels. Part of the [Awesome iOS](https://github.com/vsouza/awesome-ios) curated list. \n\n\nThe chart itself looks as follows:\n\n![alt tag](https://raw.githubusercontent.com/drinkius/flowerchart/master/screenshot.png)\n\n## Features\n\n- [x] Fully vector petals, well adjusted to any screen size\n- [x] Supports any number of petals\n- [x] All petals can be color-coded\n\n## Requirements\n\n- iOS 8.0+\n- Xcode 9\n\n## Installation \u0026 usage\n\n#### Manually\n1. Download and drop ```FlowerChart.swift``` in your project.  \n2. Congratulations, you are all set!  \n\n## Usage example\n\nYou can set arbitrary number of \"petals\" for the flower while creating an instance of the **FlowerChart** class, draw the flower itself with **drawFlower** method (providing an array of UIColors for petals to look the way you like) and set sizes to them using the **setPetalSizes** method. Size for each petal has to be a Double 0.0 ..\u003c 10.0 (no failsafe check in place yet, to be added in future releases). In the sample project there is a Refresh button that generates random sizes for all the petals to show how the chart might look like.\n\nTo use flower charts in your own project - just add the FlowerChart.swift file to it. You'd need a pre-set **UIView** which will serve as a canvas for the chart to appear on (just create a basic outlet for it), it's auto-fitted inside the view so no restrictions on its layout.\n\nIn the ViewController you need the following properties:\n\n    var flowerChart: FlowerChart!\n    var sizesArray = [Double]()\n    var colorsArray = [UIColor]()\n    let totalPetals = 9 // Set any number of petals you need\n\nEnsure **sizesArray** and **colorsArray** contain necessary amount of elements to draw the number of petals you need. Create an instance of **FlowerChart** class on **viewDidAppear** and set it up in just 4 lines of code:\n\n    let flowerChart = FlowerChart(petalCanvas: petalCanvas, totalPetals: totalPetals)\n    self.flowerChart = flowerChart\n    flowerChart.drawFlower(colorsArray)\n    flowerChart.setPetalSizes(sizesArray)\n\n## Release History\n\n* 0.1.0\n    * The first release, current version\n\n## Contribute\n\nWe would love for you to contribute to **Flowerchart**, check the ``LICENSE`` file for more info.\n\n## Meta\n\nAlexander Telegin – [@drinkius](https://twitter.com/drinkius) – telegin.alexander@gmail.com\n\nDistributed under the MIT license. See ``LICENSE`` for more information.\n\nhttps://github.com/drinkius/flowerchart\n\nGood luck and feel free to report any issues, I'll fix them shortly!\n\n[swift-image]:https://img.shields.io/badge/swift-5.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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrinkius%2Fflowerchart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrinkius%2Fflowerchart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrinkius%2Fflowerchart/lists"}