最新消息:念念不忘,必有回响。

图表框架

android开发 半白色 804浏览 0评论

1.williamchart

Williamchart is an Android Library to help the implementation of charts in android applications. For the ones that would like to contribute, my idea is not only to implement the conventional chart features but instead something that could be pleasant and intuitive while representing and visualizing data. I would prefer to keep charts simple and clean rather than overfeatured.

williamchart是帮助Android应用图表的实现Android库。对于那些想做出贡献的人,我的想法不仅是实现传统的图表特征,而是在代表和可视化数据的同时,能够使人愉快和直观。我宁愿保持图表简单干净,而不是overfeatured。

At the moment it provides:

目前它提供:

  • LineChartView
  • BarChartView
  • HorizontalBarChartView
  • StackBarChartView
  • HorizontalStackBarChartView

Tested in Android 4.0 and above.

And here is the javadoc.

Gradle

If you find this library useful and decide to use it in your projects please drop me a line @dfbernardino, I will be happy to know about it.

 

gif1

gif1

gif1

项目地址:https://github.com/diogobernardino/WilliamChart

2.XCL-Charts

XCL-Charts V2.4
Android开源图表库(XCL-Charts is a free charting library for Android platform.)
XCL-Charts基于Android原生Canvas来绘制各种图表,使用简便,定制灵活。
目前支持(3D/非3D,背向式)柱形图(Bar Chart)、3D/非3D饼图(Pie Chart)、堆积图(Stacked Bar Chart)、面积图(Area Chart)、 折线图(Line Chart)、曲线图(Spline Chart)、环形图(Dount Chart)、南丁格尔玫瑰图(Rose Chart)、仪表盘(Dial Chart)、刻度盘(Gauge Chart)、雷达图(Radar Chart)、 圆形图(Circle Chart)、弧线比较图、散点图(Scatter Chart)、气泡图(Bubble Chart)、范围条形图(RangeBar Chart)、玫瑰风向图(Wind Rose)、象限图(Quadrant chart)、漏斗图(Funnel Chart)等图表。
其它特性还包括手势缩放、图表滑动、点击交互、多图叠加、图表批注、动画效果、多XY轴显示、轴线任意方位显示、动态图例、图表参考线、柱图刻度对齐风格切换、混合图表及同数据源图表类型切换等。

License
采用Apache v2 License开源协议。

Mail: xcl_168@aliyun.com
Blog: http://blog.csdn.net/xcl168
QQ群: 374780627
GitHub代码托管地址: https://github.com/xcltapestry/XCL-Charts

图表库简要教程 http://blog.csdn.net/xcl168/article/details/42318669

部份例图:

  

  

   

  

  

  

  

  

  

  

  

              

3.HelloCharts for Android

Features 框架功能

  • Line chart(cubic lines, filled lines, scattered points)
  • Column chart(grouped, stacked, negative values)
  • Pie chart
  • Bubble chart
  • Combo chart(columns/lines)
  • Preview charts(for column chart and line chart)
  • Zoom(pinch to zoom, double tap zoom), scroll and fling
  • Custom and auto-generated axes(top, bottom, left, right, inside)
  • Animations

Screens and Demos

  • Code of a demo application is in hellocharts-samples directory, requires appcompat v21.  (demo 代码 需要在 appcompat v21上运行)
  • The demo app is also ready for download on Google Play.
  • Short video is available on YouTube.

Android Studio/Gradle

  • Maven Central/jCenter, add dependency to your build.gradle:
  • JitPack.io, add jitpack.io repositiory and dependency to your build.gradle:

Usage(如何使用)

Every chart view can be defined in layout xml file:

or created in code and added to layout later:

Use methods from *Chart classes to define chart behaviour, example methods:

Use methods from data models to define how chart looks like, example methods:


 

Every chart has its own method to set chart data and its own data model, example for line chart:


项目地址:https://github.com/lecho/hellocharts-android

  • 希望各位开发者们可以在下方多多留言,一起交流开发心得。如果觉得本文对你有帮助,你可以将它们分享给你的朋友,或者给本站打赏,打赏的资金将用于网站的运营。
  • 转载请注明:半白色 » 图表框架

    发表我的评论
    取消评论

    *

    表情

    Hi,您需要填写昵称和邮箱!

    • 昵称 (必填)
    • 邮箱 (必填)
    • 网址