MpAndroidChart强大的图表功能

来源:互联网 发布:淘宝怎样申请退换货 编辑:程序博客网 时间:2024/04/29 19:51
  • 核心特征

  • 8 个不同的图表类型
  • 在两个轴上进行缩放 ( touch-gesture, axes separately or pinch-zoom)
  • Dragging / Panning (with touch-gesture)
  • 结合图表进行显示 (line-, bar-, scatter-, candle-data)
  • 双轴或独轴显示
  • 自定义 坐标轴显示 (both x- and y-轴)
  • 高亮属性 (可以自定义Popup-View)
  • 将图表保存到 SD-Card (以图片或.txt文件的形式)
  • 预先定义颜色模板
  • 传奇的地方 (完全支持自定义)
  • 动画 (可以在X-Y轴建立图表初始化动画)
  • 极限线 (提供额外的信息,最大值、最小值等。)
  • 完全自定义 (画笔, 字体, 标题说明, 颜色, 北京, 手势, 虚格线, ...)
  • 能够平滑的缩放和滑动 for up to 30.000 数据 点在线表和图表上
  • 支持gradle
  • 可以直接从Realm.io 绘制数据 。
在gradle上使用

dependencies {    compile 'com.github.PhilJay:MPAndroidChart:v2.2.4'}

具体可以查看DOC文档:https://jitpack.io/com/github/PhilJay/MPAndroidChart/v2.2.4/javadoc/

可以查看具体支持的图表类型

图表类型

  • 线性图表 (with legend, simple design) alt tag
  • 线性图表 (with legend, simple design) alt tag

  • 线性图表 (cubic lines) alt tag

  • 线性图表 (gradient fill) alt tag

  • 组合图表 (bar- and linechart in this case) alt tag

  • BarChart (with legend, simple design)

alt tag

  • BarChart (grouped DataSets)

alt tag

  • Horizontal-BarChart

alt tag

  • 饼状图 (with selection, ...)

alt tag

  • 分散图 (with squares, triangles, circles, ... and more)

alt tag

  • CandleStickChart (for financial data)

alt tag

  • 气泡图(area covered by bubbles indicates the value)

alt tag

  • 蜘蛛网图 (spider web chart)

alt tag



0 0
原创粉丝点击