{"id":20382132,"url":"https://github.com/erenalpaslan/chartcore","last_synced_at":"2025-04-12T08:53:44.534Z","repository":{"id":64622064,"uuid":"571183670","full_name":"erenalpaslan/ChartCore","owner":"erenalpaslan","description":"Data visualization library 📊 for Android. Based on Chart.js javascript library which is currently the most popular library for web development. Extremely customizable, supports pie, doughnut, line, bar, radar, area, bubble, scatter and mixed types.","archived":false,"fork":false,"pushed_at":"2023-03-22T14:42:55.000Z","size":253,"stargazers_count":5,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T08:53:39.548Z","etag":null,"topics":["android","android-library","bar-chart","chart","chart-library","chartjs","graphics","kotlin","line-chart","pie-chart","visualization","webview"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erenalpaslan.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-11-27T12:50:33.000Z","updated_at":"2024-04-11T09:32:12.000Z","dependencies_parsed_at":"2022-12-19T04:06:45.893Z","dependency_job_id":null,"html_url":"https://github.com/erenalpaslan/ChartCore","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erenalpaslan%2FChartCore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erenalpaslan%2FChartCore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erenalpaslan%2FChartCore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erenalpaslan%2FChartCore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erenalpaslan","download_url":"https://codeload.github.com/erenalpaslan/ChartCore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248543882,"owners_count":21121838,"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":["android","android-library","bar-chart","chart","chart-library","chartjs","graphics","kotlin","line-chart","pie-chart","visualization","webview"],"created_at":"2024-11-15T02:16:40.413Z","updated_at":"2025-04-12T08:53:44.514Z","avatar_url":"https://github.com/erenalpaslan.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Android CI](https://github.com/ErenAlpaslan/ChartCore/actions/workflows/maven-publish.yml/badge.svg)](https://github.com/ErenAlpaslan/ChartCore/actions/workflows/maven-publish.yml)\n\n\n## ChartCore\nData visualization library 📊 for Android. Based on Chart.js javascript library which is currently the most popular library for web development. Extremely customizable, supports pie, doughnut, line, bar, radar, area, bubble, scatter and mixed types.\n\n***\n## Features\n\n1. Support `Android`、`Kotlin` \u0026 `Java`.\n2. Supports pie, doughnut, line, bar, radar, area, bubble, scatter and mixed types of chart\n3. Interactive、animated, the `animation` effect is exquisite 、delicate、 smooth and beautiful.[Underdevelopment] \n4. Support `chain programming syntax` like system framework.\n\n***\n## Installation\n[![](https://jitpack.io/v/ErenAlpaslan/ChartCore.svg)](https://jitpack.io/#ErenAlpaslan/ChartCore)\n\n### Gradle\n#### Step 1. Add the JitPack repository to your build file\n\nAdd it in your root build.gradle at the end of repositories:\n\n```groovy\n\tallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url 'https://www.jitpack.io' }\n\t\t}\n\t}\n```\n\t\n#### Step 2. Add the dependency\n\n```groovy\n\tdependencies {\n\t\timplementation 'com.github.ErenAlpaslan:ChartCore:1.0.0'\n\t}\n```\n\n## Usage\n\n1. Create the instance object of chart view:`ChartCoreView`\n```xml\n    \u003ccom.github.chartcore.view.ChartCoreView\n            android:id=\"@+id/chartCore\"\n            android:layout_width=\"300dp\"\n            android:layout_height=\"300dp\" /\u003e\n```\n2. Configure the properties of chart model:`ChartCoreModel`\n```kotlin  \n  val data = mapOf(\n            \"2019\" to 60.0,\n            \"2020\" to 50.0,\n            \"2021\" to 40.0,\n            \"2022\" to 120.0,\n            \"2023\" to 10.0\n        )\n\n  val coreData = ChartData()\n      .addDataset(\n          ChartNumberDataset()\n              .data(data.values.toList())\n              .label(\"Acquisitions by year\")\n              .offset(10)\n      )\n      .labels(data.keys.toList())\n\n  val chartOptions = ChartOptions()\n            .plugin(\n                Plugin()\n                    .subtitle(\n                        Title()\n                            .display(true)\n                            .text(\"Subtitle example\")\n                            .position(Position.BOTTOM)\n                    ).title(\n                        Title()\n                            .display(true)\n                            .text(\"Title\")\n                            .position(Position.TOP)\n                            .align(TextAlign.CENTER)\n                            .color(\"red\")\n                    )\n                    .tooltip(\n                        Tooltip(false)\n                    )\n            )\n            .elements(\n                Elements()\n                    .line(\n                        Line()\n                            .tension(0.5f)\n                    )\n            )\n\n  val chartModel = ChartCoreModel()\n            .type(ChartTypes.LINE)\n            .data(coreData)\n            .options(chartOptions)\n```\n3. And you need to set core model to view: \n\n```kotlin  \n   binding.chartCore.draw(chartModel)\n```\n\n4. 🚀 And thats it.\n\u003cimg width=\"358\" alt=\"image\" src=\"https://user-images.githubusercontent.com/45710175/208260307-a1958a0d-1ff9-4eb3-8643-4eafcc19dead.png\"\u003e\n\n\n## LICENSE\n\n\u003cimg width=\"100\" alt=\"image\" src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/ASF_Logo.svg/500px-ASF_Logo.svg.png\"\u003e\n\nChartCore is available under the Apache license. See the [LICENSE](https://github.com/ErenAlpaslan/ChartCore/blob/master/LICENSE) file for more information. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferenalpaslan%2Fchartcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferenalpaslan%2Fchartcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferenalpaslan%2Fchartcore/lists"}