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

Lists

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类型