{"id":13641833,"url":"https://github.com/5hmlA/Jgraph","last_synced_at":"2025-04-20T11:32:42.428Z","repository":{"id":45516655,"uuid":"58266005","full_name":"5hmlA/Jgraph","owner":"5hmlA","description":":fire: 一个视觉效果还不错的图表控件（停止维护了，不建议直接用到项目）","archived":false,"fork":false,"pushed_at":"2023-04-08T13:31:37.000Z","size":11784,"stargazers_count":1291,"open_issues_count":9,"forks_count":203,"subscribers_count":50,"default_branch":"master","last_synced_at":"2024-10-29T19:58:05.954Z","etag":null,"topics":["animations","chart","customview"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/5hmlA.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-05-07T12:57:27.000Z","updated_at":"2024-10-15T07:33:31.000Z","dependencies_parsed_at":"2024-04-09T10:31:06.456Z","dependency_job_id":null,"html_url":"https://github.com/5hmlA/Jgraph","commit_stats":null,"previous_names":["zuyun/jgraph"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5hmlA%2FJgraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5hmlA%2FJgraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5hmlA%2FJgraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5hmlA%2FJgraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/5hmlA","download_url":"https://codeload.github.com/5hmlA/Jgraph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223162823,"owners_count":17098215,"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":["animations","chart","customview"],"created_at":"2024-08-02T01:01:24.851Z","updated_at":"2025-04-20T11:32:42.416Z","avatar_url":"https://github.com/5hmlA.png","language":"Java","readme":"## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=5hmlA/Jgraph\u0026type=Date)](https://star-history.com/#5hmlA/Jgraph\u0026Date)\n\n# Jgraph\n[![License](https://img.shields.io/badge/license-Apache%202-green.svg?style=flat-square)](https://www.apache.org/licenses/LICENSE-2.0)\n[![](https://img.shields.io/badge/Jgraph-download-brightgreen.svg?style=flat-square)](http://fir.im/y57x?release_id=57b1c789ca87a87b36000f2b)\n[![](https://jitpack.io/v/mychoices/Jgraph.svg)](https://jitpack.io/#mychoices/Jgraph)\n\n![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/2.gif)\n![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/4.gif)\n![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/6.gif)\n![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/13.gif)\n![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/15.gif)\n![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/22.gif)\n![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/101.gif)\n\n2. [Gradle](https://github.com/mychoices/Jgraph/blob/master/README.md#gradle)\n3. [Demo](https://github.com/mychoices/Jgraph/blob/master/README.md#demo)\n4. [Use Guide](https://github.com/mychoices/Jgraph/blob/master/README.md#use-guide)\n    1. [图表风格](https://github.com/mychoices/Jgraph/blob/master/README.md#graphstyle)\n    2. [滚动](https://github.com/mychoices/Jgraph/blob/master/README.md#scrollable)\n    2. [纵轴](https://github.com/mychoices/Jgraph/blob/master/README.md#纵轴)\n    3. [柱-动画](https://github.com/mychoices/Jgraph/blob/master/README.md#barshowstyle)\n    4. [柱-颜色](https://github.com/mychoices/Jgraph/blob/master/README.md#barcolor)\n    4. [线-动画](https://github.com/mychoices/Jgraph/blob/master/README.md#lineshowstyle)\n    4. [线-风格](https://github.com/mychoices/Jgraph/blob/master/README.md#linestyle)\n    5. [线-断0](https://github.com/mychoices/Jgraph/blob/master/README.md#linemode)\n    7. [线-颜色](https://github.com/mychoices/Jgraph/blob/master/README.md#linecolor)\n    8. [选中](https://github.com/mychoices/Jgraph/blob/master/README.md#select)\n    9. [切换数据](https://github.com/mychoices/Jgraph/blob/master/README.md#datachange)\n5. [Versions](https://github.com/mychoices/Jgraph/blob/master/README.md#versions)\n6. [Todo](https://github.com/mychoices/Jgraph/blob/master/README.md#todo)\n7. [License](https://github.com/mychoices/Jgraph/blob/master/README.md#license)\n\n#Gradle\n\n\tallprojects {\n\t        repositories {\n\t\t\t...\n\t\t\tmaven { url \"https://jitpack.io\" }\n\t\t}\n\t}\n\tdependencies {\n\t    compile 'com.github.mychoices:Jgraph:v1.2'\n\t}\n\n#DEMO\n\ndemo下载地址\n[![](http://firicon.fir.im/2413a7e605e2ee423e8ca8f38e180320eba0cddc)](http://fir.im/y57x?release_id=57b1c789ca87a87b36000f2b)\n\n#User Guide\n---\n###*自定义属性*\n```\n\u003cattr name=\"graphstyle\" format=\"enum\"\u003e\n    \u003cenum name=\"bar\" value=\"0\"/\u003e\n    \u003cenum name=\"line\" value=\"1\"/\u003e\n\u003c/attr\u003e\n\u003cattr name=\"scrollable\" format=\"boolean\"/\u003e  \n\u003cattr name=\"visiblenums\" format=\"integer\"/\u003e\n\u003cattr name=\"showymsg\" format=\"boolean\"/\u003e\n\u003cattr name=\"normolcolor\" format=\"color\"/\u003e\n\u003cattr name=\"activationcolor\" format=\"color\"/\u003e\n\u003cattr name=\"linestyle\" format=\"enum\"\u003e\n    \u003c!--折线--\u003e\n    \u003cenum name=\"broken\" value=\"0\"/\u003e\n    \u003c!--曲线--\u003e\n    \u003cenum name=\"curve\" value=\"1\"/\u003e\n\u003c/attr\u003e\n\u003cattr name=\"linemode\" format=\"enum\"\u003e\n    \u003c!--链接每一个点--\u003e\n    \u003cenum name=\"everypoint\" value=\"1\"/\u003e\n    \u003c!--跳过0的点--\u003e\n    \u003cenum name=\"jump0\" value=\"2\"/\u003e\n    \u003c!--跳过的0点用虚线链接--\u003e\n    \u003cenum name=\"dash0\" value=\"3\"/\u003e\n\u003c/attr\u003e\n\u003cattr name=\"linewidth\" format=\"dimension\"/\u003e\n\u003cattr name=\"lineshowstyle\" format=\"enum\"\u003e\n    \u003cenum name=\"drawing\" value=\"0\"/\u003e\n    \u003cenum name=\"section\" value=\"1\"/\u003e\n    \u003cenum name=\"fromline\" value=\"2\"/\u003e\n    \u003cenum name=\"fromcorner\" value=\"3\"/\u003e\n    \u003cenum name=\"aswave\" value=\"4\"/\u003e\n\u003c/attr\u003e\n```\n\n## GraphStyle\n\n```\nsetGraphStyle(@GraphStyle int graphStyle) //柱状图 和 折线图\n```\n![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/01.gif)\n## Scrollable\n```\nsetScrollAble(boolean )\n```\n![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/02.gif)\n## 纵轴\n\n```\nsetYaxisValues(@NonNull String... showMsg)\nsetYaxisValues(int max, int showYnum)\nsetYaxisValues(int min, int max, int showYnum)\n```\n![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/03.gif)\n\n## BarShowStyle\n```\nsetBarShowStyle(@BarShowStyle int barShowStyle)\n/**\n * 水波 方式生长\n */\nint BARSHOW_ASWAVE \n/**\n * 线条 一从直线慢慢变成折线/曲线\n */\nint BARSHOW_FROMLINE \n/**\n * 柱形条 由某个往外扩散\n */\nint BARSHOW_EXPAND \n\n/**\n * 一段一段显示\n */\nint BARSHOW_SECTION \n```\n![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/04.gif)\n\n## barcolor\n```\nsetNormalColor(@ColorInt int normalColor)\nsetPaintShaderColors(@ColorInt int... colors)\n```\n![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/05.gif)\n## LineStyle\n```\nsetLineStyle(@LineStyle int lineStyle)\n/**\n * 折线\n */\nint LINE_BROKEN = 0;\n/**\n * 曲线\n */\nint LINE_CURVE = 1;\n```\n![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/06.gif)\n## LineShowStyle\n```\nsetLineShowStyle(@LineShowStyle int lineShowStyle)\n\n/**\n * 线条从无到有 慢慢出现\n */\nint LINESHOW_DRAWING \n/**\n * 线条 一段一段显示\n */\nint LINESHOW_SECTION \n/**\n * 线条 一从直线慢慢变成折线/曲线\n */\nint LINESHOW_FROMLINE \n\n/**\n * 从左上角 放大\n */\nint LINESHOW_FROMCORNER \n/**\n * 水波 方式展开\n */\nint LINESHOW_ASWAVE \n```\n![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/07.gif)\n## LineMode\n```\nsetLineMode(@LineMode int lineMode)\n/**\n * 连接每一个点\n */\nint LINE_EVERYPOINT \n/**\n * 跳过0  断开\n */\nint LINE_JUMP0 \n\n/**\n * 跳过0 用虚线链接\n */\nint LINE_DASH_0 \n```\n![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/08.gif)\n\n## linecolor\n```\nsetNormalColor(@ColorInt int normalColor)\nsetPaintShaderColors(@ColorInt int... colors)\nsetShaderAreaColors(@ColorInt int... colors)\n```\n![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/09.gif)\n## select\n```\nsetSelected(int selected)\nsetSelectedMode(@SelectedMode int selectedMode)\n```\n![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/010.gif)\n\n# datachange\n```\naniChangeData(List\u003cJchart\u003e jchartList)\n```\n![](https://raw.githubusercontent.com/mychoices/Jgraph/master/gif/011.gif)\n\n# Versions\n\n\n\n# Todo\nTodo\n\n# License\n\n    Copyright 2016 Yun\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","funding_links":[],"categories":["图表(Chart)"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5hmlA%2FJgraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F5hmlA%2FJgraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5hmlA%2FJgraph/lists"}