{"id":15651373,"url":"https://github.com/ybubnov/plotui","last_synced_at":"2025-04-30T18:45:24.648Z","repository":{"id":40315971,"uuid":"455933426","full_name":"ybubnov/PlotUI","owner":"ybubnov","description":"Integrate beautiful minimalistic plots into your app.","archived":false,"fork":false,"pushed_at":"2022-08-06T14:31:02.000Z","size":7014,"stargazers_count":33,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-21T07:08:27.148Z","etag":null,"topics":["bar-chart","chart","graph","ios","macos","plot","swift","swiftui","tvos"],"latest_commit_sha":null,"homepage":"https://plotui.pages.dev","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/ybubnov.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-02-05T17:12:29.000Z","updated_at":"2023-04-24T16:12:54.000Z","dependencies_parsed_at":"2022-07-22T08:52:26.597Z","dependency_job_id":null,"html_url":"https://github.com/ybubnov/PlotUI","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ybubnov%2FPlotUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ybubnov%2FPlotUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ybubnov%2FPlotUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ybubnov%2FPlotUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ybubnov","download_url":"https://codeload.github.com/ybubnov/PlotUI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251765155,"owners_count":21640141,"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":["bar-chart","chart","graph","ios","macos","plot","swift","swiftui","tvos"],"created_at":"2024-10-03T12:38:07.095Z","updated_at":"2025-04-30T18:45:24.624Z","avatar_url":"https://github.com/ybubnov.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [PlotUI](https://plotui.pages.dev) \u0026middot; [![Tests][Tests]](https://github.com/ybubnov/PlotUI)\n\nIntegrate beautiful minimalistic plots into your app.\n\n## Installation\n\nYou can use PlotUI as package dependency to your app using\n[Xcode](https://developer.apple.com/documentation/swift_packages/adding_package_dependencies_to_your_app):\n\n```text\ngithub.com/ybubnov/PlotUI\n```\n\n## Documentation\n\nThe [PlotUI Documentation](https://plotui.pages.dev) contains additional details on how\nto get started with PlotUI.\n\n## Usage\n\nDefine your plot using the `PlotView` structure, and populate it with concrete data\nrepresentation, like `BarView`, to render data in your app's user interface.\n\nThe following example creates a bar chart with 3 data points, where horizontal ticks\nare labeled with week days instead of numbers:\n\n```swift\nPlotView {\n    BarView(\n        x: [3, 4, 5],\n        y: [2000, 2100, 2300]\n    )\n} horizontal: {\n    HAxis(\n        ticks: [1, 2, 3, 4, 5],\n        labels: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\"]\n    )\n} vertical: {\n    VAxis(ticks: [1000, 2000, 3000])\n}\n.contentDisposition(minX: 1, maxX: 5, minY: 0, maxY: 3000)\n.frame(width: 500, height: 300)\n```\n\nYou can use `LineView` to define a line chart:\n```swift\nPlotView{\n    LineView(\n        x: [0, 1, 2, 3, 4, 5],\n        y: [10, 20, 0, 45, 30, 50]\n    )\n}\n.tickInsets(bottom: 20, trailing: 20)\n.contentDisposition(minX: -5, maxX: 15, minY: 0)\n.frame(width: 600, height: 300)\n```\n\n## License\n\nPlotUI is [MIT licensed](LICENSE).\n\n[Tests]: https://github.com/ybubnov/PlotUI/workflows/Tests/badge.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fybubnov%2Fplotui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fybubnov%2Fplotui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fybubnov%2Fplotui/lists"}