{"id":19348112,"url":"https://github.com/korlibs/korge-charts","last_synced_at":"2025-10-29T12:18:26.833Z","repository":{"id":209289436,"uuid":"723668381","full_name":"korlibs/korge-charts","owner":"korlibs","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-26T11:39:05.000Z","size":120,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-01T20:55:41.659Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/korlibs.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,"publiccode":null,"codemeta":null}},"created_at":"2023-11-26T12:07:15.000Z","updated_at":"2025-05-31T01:01:15.000Z","dependencies_parsed_at":"2024-02-28T23:28:31.563Z","dependency_job_id":"c336dc56-d880-46c7-a449-b7aa599979d1","html_url":"https://github.com/korlibs/korge-charts","commit_stats":null,"previous_names":["korlibs/korge-charts"],"tags_count":2,"template":false,"template_full_name":"korlibs/korge-kproject-template","purl":"pkg:github/korlibs/korge-charts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/korlibs%2Fkorge-charts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/korlibs%2Fkorge-charts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/korlibs%2Fkorge-charts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/korlibs%2Fkorge-charts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/korlibs","download_url":"https://codeload.github.com/korlibs/korge-charts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/korlibs%2Fkorge-charts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274880900,"owners_count":25367174,"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-09-12T02:00:09.324Z","response_time":60,"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-11-10T04:19:04.172Z","updated_at":"2025-10-29T12:18:26.721Z","avatar_url":"https://github.com/korlibs.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# korge-charts\n\nCharts\nThis provides support to display basic charts. The goal is to keep the code simple and provide some customization options.\nThe functions available are:\n- lineChart\n- barChart\n- pieChart\n- spiderGraph\n\n---\n```kotlin\nlineChart(Size(200, 100)) {\n  position(50, 50)\n  lineColor = Colors.RED\n  axlesColor = Colors[\"#85847f\"]\n  hintsColor = Colors.WHITE\n  updateData(\n    listOf(\n      Point(15, 55),\n      Point(22, 33),\n      Point(111, 222),\n      Point(433, 312),\n    ),\n    xHints = listOf(100.0, 200.0, 300.0, 400.0),\n    yHints = listOf(300.0, 600.0, 900.0),\n    showHintLabels = true,\n  )\n}\n```\n![Zrzut ekranu 2024-03-25 171128](https://github.com/korlibs/korge-charts/assets/33195725/816eda3a-0824-4716-9ad8-993950b1e7db)\n\n---\n\nCode examples:\n```kotlin\nbarChart(Size(200, 100)) {\n  position(50, 50)\n  updateData(\n    listOf(\n      \"low\" to 1f,\n      \"medium\" to 2f,\n      \"high\" to 3f,\n    )\n  )\n}\n```   \n![Zrzut ekranu 2024-03-25 170553](https://github.com/korlibs/korge-charts/assets/33195725/4ad8d73d-48c3-418b-8c08-1f63018a411e)\n\n---\n\n```kotlin\npieChart(70f) {\n  position(50, 50)\n  setColors(\n    listOf(\n      Colors[\"#73ff5f\"],\n      Colors[\"#4058ff\"],\n      Colors[\"#1efff8\"],\n      Colors[\"#ff0b00\"],\n    )\n  )\n\n  updateData(\n    listOf(\n      \"example\" to 10f,\n      \"another\" to 30f,\n      \"very cool\" to 5f,\n      \"exampleeee\" to 15f,\n    )\n  )\n}\n```   \n![Zrzut ekranu 2024-03-25 171147](https://github.com/korlibs/korge-charts/assets/33195725/b2d3e644-d1dd-4929-a62e-7956b14448e9)\n\n---\n\n\n```kotlin\nspiderGraph(100f, 30f) {\n  position(50, 50)\n  updateData(listOf(15f, 16f, 11f, 15f, 16f))\n\n  backgroundColor = Colors[\"#1014c5\"]\n  foregroundColor = Colors[\"#16c542\"].withA(140)\n  updateData(listOf(10f, 13f, 29f, 25f, 11f, 26f, 23f))\n  val strings = listOf(\"Speed\", \"Agility\", \"Strength\", \"Luck\", \"Intelligence\", \"Wisdom\", \"Charm\")\n  getEdgeContainers().forEachIndexed { idx, container -\u003e\n    container.apply {\n      text(strings[idx])\n    }\n  }\n  getValueContainers().forEach {\n    it.apply {\n      circle(3) {\n        anchor(.5, .5)\n      }\n    }\n  }\n}\n```   \n![Zrzut ekranu 2024-03-25 171105](https://github.com/korlibs/korge-charts/assets/33195725/278a09af-908f-4a4b-821f-322eba510aa4)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkorlibs%2Fkorge-charts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkorlibs%2Fkorge-charts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkorlibs%2Fkorge-charts/lists"}