{"id":23608234,"url":"https://github.com/SimformSolutionsPvtLtd/SSLineChart","last_synced_at":"2025-08-30T14:31:49.713Z","repository":{"id":50344776,"uuid":"506253360","full_name":"SimformSolutionsPvtLtd/SSLineChart","owner":"SimformSolutionsPvtLtd","description":"SSLineChart provides you with the additional functionality of gradient color fill which cannot be found in any library specially Watchkit Libraries.","archived":false,"fork":false,"pushed_at":"2022-07-28T13:19:27.000Z","size":568,"stargazers_count":44,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-26T02:34:02.214Z","etag":null,"topics":["bargraph","gradient","graph","graphs","ios","linegraph","swift","swift5","swiftui","trending","watch","watchos"],"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/SimformSolutionsPvtLtd.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":"2022-06-22T13:11:47.000Z","updated_at":"2023-10-14T02:37:40.000Z","dependencies_parsed_at":"2022-08-03T02:15:34.761Z","dependency_job_id":null,"html_url":"https://github.com/SimformSolutionsPvtLtd/SSLineChart","commit_stats":null,"previous_names":["mobile-simformsolutions/sslinechart"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSLineChart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSLineChart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSLineChart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSLineChart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SimformSolutionsPvtLtd","download_url":"https://codeload.github.com/SimformSolutionsPvtLtd/SSLineChart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231494452,"owners_count":18385248,"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":["bargraph","gradient","graph","graphs","ios","linegraph","swift","swift5","swiftui","trending","watch","watchos"],"created_at":"2024-12-27T14:12:58.098Z","updated_at":"2024-12-27T14:12:59.339Z","avatar_url":"https://github.com/SimformSolutionsPvtLtd.png","language":"Swift","funding_links":[],"categories":["watchOS"],"sub_categories":["Objective-C"],"readme":"\u003ca href=\"https://www.simform.com/\"\u003e\u003cimg src=\"https://github.com/SimformSolutionsPvtLtd/SSToastMessage/blob/master/simformBanner.png\"\u003e\u003c/a\u003e\n\nSSLineChart\n=============\n[![CocoaPods Version](https://img.shields.io/cocoapods/v/SSLineChart)](https://cocoapods.org/pods/SSLineChart)\n[![Platform](https://img.shields.io/cocoapods/p/SSLineChart)](https://cocoapods.org/pods/SSLineChart)\n[![License](https://img.shields.io/github/license/SimformSolutionsPvtLtd/SSLineChart)](https://cocoapods.org/pods/SSLineChart)\n[![Swift Version][swift-image]][swift-url]\n[![PRs Welcome][PR-image]][PR-url]\n[![Twitter](https://img.shields.io/badge/Twitter-@simform-blue.svg?style=flat)](https://twitter.com/simform)\n\nSSLineChart draws a `UIImage` of a chart with given values and provide additional functionality of gradient color fill.\n\nSetup Instructions\n------------------\n[CocoaPods](http://cocoapods.org)\n------------------\nTo integrate SSLineChart into your Xcode project using CocoaPods, specify it in your `Podfile`:\n```ruby\npod 'SSLineChart', '~\u003e 1.0.0'\n```\nand in your code add `import SSLineChart`.\n\n[Swift Package Manager](https://swift.org/package-manager/)\n------------------\nWhen using Xcode 11 or later, you can install `SSLineChart` by going to your Project settings \u003e `Swift Packages` and add the repository by providing the GitHub URL. Alternatively, you can go to `File` \u003e `Swift Packages` \u003e `Add Package Dependencies...`\n\n## Manually\n\n1. Add `SSLineChart.swift` and `SSLineChartData.swift` to your project.\n2. Grab yourself a cold 🍺.\n\n## Requirements\n* Xcode 11+\n\n# Usage\n\nInitial Setup\n---------\n```swift\n  let lineChart = SSLineChart()\n  lineChart.chartMargin = 14\n  lineChart.yLabelFormat = \"%1.0f\"\n  lineChart.xLabels = (1...5).map{ $0.description }\n  lineChart.yFixedValueMax = 100\n  lineChart.yFixedValueMin = 20\n  lineChart.yLabels = [\"20\", \"60\", \"100\"]\n  lineChart.xLabelWidth = 15.0\n  lineChart.yLabelHeight = 0\n  lineChart.yLabelColor =  UIColor.white\n  lineChart.xLabelColor =  UIColor.white\n        \n  let activityData = [45, 65, 30, 85, 40, 70, 83, 50]\n        \n  let data = SSLineChartData()\n  data.lineColor = .white\n  data.lineAlpha = 1\n  data.lineWidth = 0.6\n  data.itemCount = activityData.count\n  data.getData = { index in\n      let yValue = activityData[index]\n      return CGFloat(yValue)\n  }\n\n  lineChart.chartData = [data]\n  let chartImage = lineChart.drawImage()\n```\n\nApply gradient\n---------\n```swift\n  lineChart.setGradientColor(colors: [.red, .orange], position: .topDown)\n```\nChart Examples\n----------------\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"gradientGraph.png\" width=\"400\"  title=\"Gradient\"\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\n\u003cimg src=\"lineGraph.png\" width=\"400\"  title=\"Line\"\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\n\u003c/p\u003e\n\n# Check out our other Libraries\n\n\u003ch3\u003e\u003ca href=\"https://github.com/SimformSolutionsPvtLtd/Awesome-Mobile-Libraries\"\u003e\u003cu\u003e🗂 Simform Solutions Libraries→\u003c/u\u003e\u003c/a\u003e\u003c/h3\u003e\n\n\n## MIT License\n\nCopyright (c) 2022 Simform Solutions\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n[PR-image]:https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat\n[PR-url]:http://makeapullrequest.com\n[swift-image]:https://img.shields.io/badge/swift-5.0-orange.svg\n[swift-url]: https://swift.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSimformSolutionsPvtLtd%2FSSLineChart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSimformSolutionsPvtLtd%2FSSLineChart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSimformSolutionsPvtLtd%2FSSLineChart/lists"}