{"id":32151231,"url":"https://github.com/augarte/simplelinechart","last_synced_at":"2026-02-19T07:01:39.760Z","repository":{"id":65189664,"uuid":"586084400","full_name":"augarte/SimpleLineChart","owner":"augarte","description":"Simple line charts for iOS 📈","archived":false,"fork":false,"pushed_at":"2023-09-16T15:52:08.000Z","size":132,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-19T21:24:55.417Z","etag":null,"topics":["chart","ios","linechart","swift","swiftpackagemanager"],"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/augarte.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":"2023-01-06T22:38:27.000Z","updated_at":"2023-12-13T13:31:34.000Z","dependencies_parsed_at":"2023-02-10T06:45:33.061Z","dependency_job_id":null,"html_url":"https://github.com/augarte/SimpleLineChart","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/augarte/SimpleLineChart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/augarte%2FSimpleLineChart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/augarte%2FSimpleLineChart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/augarte%2FSimpleLineChart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/augarte%2FSimpleLineChart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/augarte","download_url":"https://codeload.github.com/augarte/SimpleLineChart/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/augarte%2FSimpleLineChart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29605799,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["chart","ios","linechart","swift","swiftpackagemanager"],"created_at":"2025-10-21T10:38:55.283Z","updated_at":"2026-02-19T07:01:39.754Z","avatar_url":"https://github.com/augarte.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimpleLineChart\n\n![Releases](https://img.shields.io/github/v/release/augarte/SimpleLineChart?include_prereleases)\n![Versions](https://img.shields.io/cocoapods/v/SimpleLineChart)\n![Platform](https://img.shields.io/cocoapods/p/SimpleLineChart.svg?style=flat)\n![License](https://img.shields.io/cocoapods/l/SimpleLineChart.svg?style=flat)\n\n\u003cimg alt=\"SLC\" src=\"Screenshots/SLC.jpg\" height=\"250px\"\u003e \u003cimg alt=\"SLC Styled\" src=\"Screenshots/SLC_Styled.jpg\" height=\"250px\"\u003e\n\nSimpleLineChart is a lightweight UIKit line chart view for iOS with simple styling and optional time-range filters.\n\n## Features\n\n- UIKit chart view with minimal setup\n- Solid or gradient background\n- Line styling (stroke, points, shadow)\n- Optional period buttons for time-series data\n- Multiple datasets per chart\n\n## Requirements\n\n- iOS 13.0+\n- Swift 5.1+\n\n## Usage\n\nQuick start\n```swift\nlet values: [SLCData] = [\n    SLCData(x: 0, y: 5),\n    SLCData(x: 1, y: 7),\n    SLCData(x: 2, y: 9)\n]\n\nlet lineChart = SimpleLineChart()\n\nlet dataSet = SLCDataSet(graphPoints: values)\nlineChart.loadPoints(dataSet: dataSet)\n```\n\nStyling the chart background\n```swift\nlet chartStyle = SLCChartStyle(\n    backgroundGradient: false,\n    solidBackgroundColor: .white\n)\nlineChart.setChartStyle(chartStyle: chartStyle)\n```\n\nStyling the chart line\n```swift\nlet lineStyle = SLCLineStyle(\n    lineColor: .blue,\n    lineStroke: 3.0,\n    circleDiameter: 5.0,\n    lineShadow: true,\n    lineShadowgradientStart: .blue,\n    lineShadowgradientEnd: .white\n)\ndataSet.setLineStyle(lineStyle)\n```\n\nTime-series periods (optional)\n```swift\nlet chartStyle = SLCChartStyle(addPeriodButtons: true)\nlineChart.setChartStyle(chartStyle: chartStyle)\n\nlet now = Int(Date().timeIntervalSince1970)\nlet values = [\n    SLCData(x: now - 86400, y: 5),\n    SLCData(x: now - 3600, y: 7),\n    SLCData(x: now, y: 9)\n]\n```\n\nWhen `addPeriodButtons` is enabled, `SLCData.x` must be a UNIX timestamp in seconds for filtering to work correctly.\n\nMultiple datasets\n```swift\nlet first = SLCDataSet(graphPoints: values1)\nlet second = SLCDataSet(graphPoints: values2)\nlineChart.loadPoints(dataSets: [first, second])\n```\n\n## Installation\n\n##### Swift Package Manager\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/augarte/SimpleLineChart.git\", .exact(\"1.0.0\"))\n]\n```\n\n##### CocoaPods\n\n```ruby\npod 'SimpleLineChart', '1.0.0'\n```\n\n\n## Example\n\nExample app can be found here: [SLCExampleApp](https://github.com/augarte/SLCExampleApp)\n\n## License\n\nSimpleLineChart is available under the MIT license.\nSee the [LICENSE](https://github.com/augarte/SimpleLineChart/blob/main/LICENSE) for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faugarte%2Fsimplelinechart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faugarte%2Fsimplelinechart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faugarte%2Fsimplelinechart/lists"}