{"id":13641914,"url":"https://github.com/Cuieney/BarChart-master","last_synced_at":"2025-04-20T12:30:59.575Z","repository":{"id":112515863,"uuid":"82147793","full_name":"Cuieney/BarChart-master","owner":"Cuieney","description":"自动伸缩的chart","archived":false,"fork":false,"pushed_at":"2017-02-16T07:40:53.000Z","size":1223,"stargazers_count":44,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-09T12:39:48.024Z","etag":null,"topics":["android","chart","chartered"],"latest_commit_sha":null,"homepage":null,"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/Cuieney.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,"roadmap":null,"authors":null}},"created_at":"2017-02-16T06:34:02.000Z","updated_at":"2022-11-24T07:34:45.000Z","dependencies_parsed_at":"2023-05-04T13:48:29.060Z","dependency_job_id":null,"html_url":"https://github.com/Cuieney/BarChart-master","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cuieney%2FBarChart-master","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cuieney%2FBarChart-master/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cuieney%2FBarChart-master/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cuieney%2FBarChart-master/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cuieney","download_url":"https://codeload.github.com/Cuieney/BarChart-master/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249893360,"owners_count":21341435,"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","chart","chartered"],"created_at":"2024-08-02T01:01:25.631Z","updated_at":"2025-04-20T12:30:59.569Z","avatar_url":"https://github.com/Cuieney.png","language":"Java","funding_links":[],"categories":["图表(Chart)"],"sub_categories":[],"readme":"# ChartView\n\n![ChartView icon](https://github.com/Cuieney/BarChart-master/blob/master/chart.gif)\n\n\n## Usage\n\nPlease refer to the [example](https://github.com/Cuieney/BarChart-master/tree/master/example \"a Safari extension\").\n for seeing it in action.\n\nShortcut to [attrs.xml](https://github.com/Cuieney/BarChart-master/blob/master/library/src/main/res/values/attrs.xml \"a Safari extension\").\n## XML\nAdd library dependency to your build.gradle file then copy this code to layout\n\n```\n  \u003ccom.example.library.BarChartView\n            android:id=\"@+id/chart\"\n            android:layout_marginTop=\"25dp\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            app:axisColor=\"@color/colorPrimary\"\n            app:hideGirdLine=\"false\"\n            app:barColor=\"@color/colorPrimary\"\n            app:max=\"300\"\n            app:type=\"line\"\n            app:radius=\"15\"\n            app:yAxisTxtColor=\"@color/colorAccent\" /\u003e\n\n```\n\n#### Attributes（布局中调用）\n\nAttributes | format | describe\n------------ | ------------- | ------------\naxisColor | color  | 设置xy轴颜色\naxisWidth | integer  | 设置轴的宽度\nxAxisTxtColor | color  | 设置x轴label的字体颜色\nyAxisTxtColor | color  | 设置y轴label的字体颜色\nbarColor | color  | 设置chart的颜色\nhideGirdLine | color  | 是否隐藏背景表格\nmax | color  | 设置y轴的最大值\nbarPressEnable | color  | 设置chart点击是否有反应（变色）\nradius | color  | 设置折线图圆形半径\ntype | color  | 设置chart样式\n\n\n\n#### Method（代码中调用）\n\nmethodName  | describe\n------------ | ------------\nsetHideGirdLine(boolean)  | 设置隐藏背景表格\nsetBarPressEnable(boolean) | 设置chart点击事件\nsetBarChartList(float[]) | 设置数据\nsetCharType(int) | 设置chart类型\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCuieney%2FBarChart-master","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCuieney%2FBarChart-master","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCuieney%2FBarChart-master/lists"}