https://github.com/jeanboydev/android-linechart
:chart_with_upwards_trend:一个简单的折线,贝塞尔曲线图表控件,高度可扩展,支持动态显示。
https://github.com/jeanboydev/android-linechart
android-linechart chart line linechart
Last synced: 5 months ago
JSON representation
:chart_with_upwards_trend:一个简单的折线,贝塞尔曲线图表控件,高度可扩展,支持动态显示。
- Host: GitHub
- URL: https://github.com/jeanboydev/android-linechart
- Owner: jeanboydev
- License: apache-2.0
- Created: 2017-06-13T10:13:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-21T06:24:06.000Z (almost 8 years ago)
- Last Synced: 2025-06-08T07:07:58.374Z (7 months ago)
- Topics: android-linechart, chart, line, linechart
- Language: Java
- Homepage:
- Size: 9.59 MB
- Stars: 196
- Watchers: 2
- Forks: 48
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Android-LineChart
  
## 介绍
一个简单的折线,贝塞尔曲线图表控件,高度可扩展,支持动态显示。
## 效果图
![演示][1] ![演示][2] ![演示][3]
![演示][4] ![演示][5]
## 使用
1. 设置布局
```XML
```
2. 添加数据
```Java
lineChartView.setData(datas);
```
3. 修改Y轴标尺间隔
```Java
lineChartView.setRulerYSpace(value);
```
4. 修改X轴标尺间隔(锚点间距)
```Java
lineChartView.setStepSpace(value);
```
5. 设置是否显示表格
```Java
lineChartView.setShowTable(isShowTable);
```
6. 设置是否为贝塞尔曲线
```Java
lineChartView.setBezierLine(isBezier);
```
7. 设置锚点是否为方形
```Java
lineChartView.setCubePoint(isCube);
```
8. 播放动画
```Java
lineChartView.playAnim();
```
## 关于我
如果对你有帮助,请 star 一下,然后 follow 我,给我增加一下分享动力,谢谢!
如果你有什么疑问或者问题,可以提交 issue 和 request,发邮件给我 jeanboy@foxmail.com 。
或者加入下面的 QQ 群来一起学习交流。
## License
Copyright 2017 jeanboy
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
[1]:https://github.com/jeanboydev/Android-LineChart/blob/master/resources/anim.gif
[2]:https://github.com/jeanboydev/Android-LineChart/blob/master/resources/change.gif
[3]:https://github.com/jeanboydev/Android-LineChart/blob/master/resources/operate.gif
[4]:https://github.com/jeanboydev/Android-LineChart/blob/master/resources/Screenshot_20170613-183802.jpg
[5]:https://github.com/jeanboydev/Android-LineChart/blob/master/resources/Screenshot_20170613-183803.jpg
