# FanBladeView
**Repository Path**: relin/FanBladeView
## Basic Information
- **Project Name**: FanBladeView
- **Description**: 扇叶饼图统计、半径偏移、扇形内部文字
- **Primary Language**: Java
- **License**: Not specified
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-07-22
- **Last Updated**: 2022-07-22
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# FanBladeView
扇叶饼图统计、半径偏移、扇形内部文字
# 预览

# 资源
|名字|资源|
|-|-|
|AAR|[fan_blade_view.aar](https://github.com/RelinRan/FanBladeView/blob/master/fan_blade_view_2022.7.22.1.aar)|
|GitHub |[FanBladeView](https://github.com/RelinRan/FanBladeView)|
|Gitee|[FanBladeView](https://gitee.com/relin/FanBladeView)|
# Maven
1.build.grade | setting.grade
```
repositories {
...
maven { url 'https://jitpack.io' }
}
```
2./app/build.grade
```
dependencies {
implementation 'com.github.RelinRan:FanBladeView:2022.7.22.1'
}
```
# xml
~~~
~~~
# attrs.xml
~~~
~~~
# 使用
~~~
FanBladeView fan_blade = findViewById(R.id.fan_blade);
List data = new ArrayList<>();
data.add(new Fan("其他", 120, Color.parseColor("#3ACACC")));
data.add(new Fan("钢筋工", 110, Color.parseColor("#3ABDCC")));
data.add(new Fan("架子工", 226, Color.parseColor("#37A5C0")));
data.add(new Fan("木工", 168, Color.parseColor("#3267B6")));
data.add(new Fan("砖工", 362, Color.parseColor("#327AB6")));
data.add(new Fan("水泥工", 148, Color.parseColor("#3791C0")));
data.add(new Fan("木工", 268, Color.parseColor("#3267B6")));
data.add(new Fan("砖工", 102, Color.parseColor("#327AB6")));
data.add(new Fan("水泥工", 200, Color.parseColor("#3791C0")));
fan_blade.setDatasource(data);
~~~