{"id":13614327,"url":"https://github.com/HackPlan/AndroidCharts","last_synced_at":"2025-04-13T18:32:55.559Z","repository":{"id":11861997,"uuid":"14421240","full_name":"HackPlan/AndroidCharts","owner":"HackPlan","description":"An easy-to-use Android charts library with animation.","archived":false,"fork":false,"pushed_at":"2021-05-12T06:41:12.000Z","size":863,"stargazers_count":1326,"open_issues_count":22,"forks_count":333,"subscribers_count":77,"default_branch":"master","last_synced_at":"2024-08-02T20:46:13.119Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/HackPlan.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":"2013-11-15T10:15:22.000Z","updated_at":"2024-07-09T22:56:59.000Z","dependencies_parsed_at":"2022-06-29T16:13:08.189Z","dependency_job_id":null,"html_url":"https://github.com/HackPlan/AndroidCharts","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/HackPlan%2FAndroidCharts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HackPlan%2FAndroidCharts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HackPlan%2FAndroidCharts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HackPlan%2FAndroidCharts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HackPlan","download_url":"https://codeload.github.com/HackPlan/AndroidCharts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223600249,"owners_count":17171615,"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":[],"created_at":"2024-08-01T20:01:00.095Z","updated_at":"2024-11-07T22:31:14.918Z","avatar_url":"https://github.com/HackPlan.png","language":"Java","readme":"# AndroidCharts\n\nA simple Android charts library.\n\n## Known Uses in\n\n* [Pomotodo](https://play.google.com/store/apps/details?id=com.pomotodo)\n\n## Including in Your Project\n\n#### Eclipse\n\n* Import `/AndroidCharts` folder.\n* Move `/java` folder to `/src` folder.\n* `mkdir libs`, copy `android-support-v4.jar` to `/libs`.\n\n#### Gradle\n\n```groovy\nrepositories {\n    jcenter()\n}\n```\n\n```groovy\ncompile 'im.dacer:AndroidCharts:1.0.4'\n```\n\n## Usage\n\n#### Line Chart\n\n![Line Chart](https://raw.github.com/dacer/AndroidCharts/master/pic/line.png)\n\n```xml\n\u003cHorizontalScrollView\u003e\n        \u003cview\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"300dp\"\n            class=\"im.dacer.androidcharts.LineView\"\n            android:id=\"@+id/line_view\" /\u003e\n\u003c/HorizontalScrollView\u003e\n```\n\n```java\nLineView lineView = (LineView)findViewById(R.id.line_view);\nlineView.setDrawDotLine(false); //optional\nlineView.setShowPopup(LineView.SHOW_POPUPS_MAXMIN_ONLY); //optional\nlineView.setBottomTextList(strList);\nlineView.setColorArray(new int[]{Color.BLACK,Color.GREEN,Color.GRAY,Color.CYAN});\nlineView.setDataList(dataLists); //or lineView.setFloatDataList(floatDataLists)\n```\n\n#### Bar Chart\n\n![Bar Chart](https://raw.github.com/dacer/AndroidCharts/master/pic/bar.png)\n\n```xml\n\u003cHorizontalScrollView\u003e\n        \u003cview\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"300dp\"\n            class=\"im.dacer.androidcharts.BarView\"\n            android:id=\"@+id/bar_view\" /\u003e\n\u003c/HorizontalScrollView\u003e\n```\n\n```java\nBarView barView = (BarView)findViewById(R.id.bar_view);\\\nbarView.setBottomTextList(strList);\nbarView.setDataList(dataList,100);\n```\n\n#### Clock Pie Chart\n\n![Clock Pie Chart](https://raw.github.com/dacer/AndroidCharts/master/pic/pie.png)\n\n```xml\n\u003cview\n    android:layout_width=\"300dp\"\n    android:layout_height=\"wrap_content\"\n    class=\"im.dacer.androidcharts.ClockPieView\"\n    android:id=\"@+id/clock_pie_view\" /\u003e\n```\n\n```java\nClockPieView pieView = (ClockPieView)findViewById(R.id.clock_pie_view);\nArrayList\u003cClockPieHelper\u003e pieHelperArrayList = new ArrayList\u003cClockPieHelper\u003e();\npieView.setDate(pieHelperArrayList);\n```\n\n#### Pie Chart\n\n![Pie Chart](https://raw.github.com/dacer/AndroidCharts/master/pic/pie2.png)\n\n```xml\n\u003cview\n    android:layout_width=\"300dp\"\n    android:layout_height=\"wrap_content\"\n    class=\"im.dacer.androidcharts.PieView\"\n    android:id=\"@+id/pie_view\" /\u003e\n```\n\n```java\nPieView pieView = (PieView)findViewById(R.id.pie_view);\nArrayList\u003cPieHelper\u003e pieHelperArrayList = new ArrayList\u003cPieHelper\u003e();\npieView.setDate(pieHelperArrayList);\npieView.selectedPie(2); //optional\npieView.setOnPieClickListener(listener) //optional\npieView.showPercentLabel(false); //optional\n```\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2013 Ding Wenhao\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject 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, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n## Contributing\n\nPlease fork this repository and contribute back using\n[pull requests](https://github.com/github/android/pulls).\n\nAny contributions, large or small, major features, bug fixes, additional\nlanguage translations, unit/integration tests are welcomed\n","funding_links":[],"categories":[":shamrock:  **Categories**","图表(Chart)","Libs"],"sub_categories":[":books: Libraries","\u003cA NAME=\"Chart\"\u003e\u003c/A\u003eChart"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHackPlan%2FAndroidCharts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHackPlan%2FAndroidCharts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHackPlan%2FAndroidCharts/lists"}