Android-LineChart

Introduction: 一个简单的折线,贝塞尔曲线图表控件,高度可扩展,支持动态显示。
More: Author   ReportBugs   
Tags:
line chart-

介绍

一个简单的折线,贝塞尔曲线图表控件,高度可扩展,支持动态显示。

效果图

演示 演示 演示

演示 演示

使用

  1. 设置布局 ```XML


2. 添加数据
```Java
lineChartView.setData(datas);
  1. 修改 Y 轴标尺间隔

    lineChartView.setRulerYSpace(value);
    
  2. 修改 X 轴标尺间隔(锚点间距)

    lineChartView.setStepSpace(value);
    
  3. 设置是否显示表格

    lineChartView.setShowTable(isShowTable);
    
  4. 设置是否为贝塞尔曲线

    lineChartView.setBezierLine(isBezier);
    
  5. 设置锚点是否为方形

    lineChartView.setCubePoint(isCube);
    
  6. 播放动画

    lineChartView.playAnim();
    

关于我

如果对你有帮助,请 star 一下,然后 follow 我,给我增加一下分享动力,谢谢!

如果你有什么疑问或者问题,可以提交 issue 和 request,发邮件给我 jeanboy@foxmail.com 。

或者加入下面的 QQ 群来一起学习交流。

Android 技术进阶:386463747

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.
Apps
About Me
GitHub: Trinea
Facebook: Dev Tools