Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Cuieney/BarChart-master
自动伸缩的chart
https://github.com/Cuieney/BarChart-master
android chart chartered
Last synced: 1 day ago
JSON representation
自动伸缩的chart
- Host: GitHub
- URL: https://github.com/Cuieney/BarChart-master
- Owner: Cuieney
- Created: 2017-02-16T06:34:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-02-16T07:40:53.000Z (over 7 years ago)
- Last Synced: 2024-02-29T00:37:50.481Z (4 months ago)
- Topics: android, chart, chartered
- Language: Java
- Size: 1.17 MB
- Stars: 44
- Watchers: 5
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Lists
- awesome-github-android-ui - BarChart-master - 自动伸缩的chart (图表(Chart))
- awesome-github-android-ui - BarChart-master - 自动伸缩的chart (图表(Chart))
README
# ChartView
![ChartView icon](https://github.com/Cuieney/BarChart-master/blob/master/chart.gif)
## Usage
Please refer to the [example](https://github.com/Cuieney/BarChart-master/tree/master/example "a Safari extension").
for seeing it in action.Shortcut to [attrs.xml](https://github.com/Cuieney/BarChart-master/blob/master/library/src/main/res/values/attrs.xml "a Safari extension").
## XML
Add library dependency to your build.gradle file then copy this code to layout```
```
#### Attributes(布局中调用)
Attributes | format | describe
------------ | ------------- | ------------
axisColor | color | 设置xy轴颜色
axisWidth | integer | 设置轴的宽度
xAxisTxtColor | color | 设置x轴label的字体颜色
yAxisTxtColor | color | 设置y轴label的字体颜色
barColor | color | 设置chart的颜色
hideGirdLine | color | 是否隐藏背景表格
max | color | 设置y轴的最大值
barPressEnable | color | 设置chart点击是否有反应(变色)
radius | color | 设置折线图圆形半径
type | color | 设置chart样式#### Method(代码中调用)
methodName | describe
------------ | ------------
setHideGirdLine(boolean) | 设置隐藏背景表格
setBarPressEnable(boolean) | 设置chart点击事件
setBarChartList(float[]) | 设置数据
setCharType(int) | 设置chart类型