MPAndroidChart - Android 图表库


Apache
Android
Java

软件简介

MPAndroidChart 是 Android 系统上一款开源的图表库。目前提供线图和饼图,支持选择、缩放和拖放。

示例代码:

LineData ld = new LineData(...);

LimitLine ll = new LimitLine(140f);
ll.setLineColor(Color.RED);
ll.setLineWidth(4f);
// .. and more styling options

ld.addLimitLine(ll);

图表类型:

  • LineChart (with legend, simple design)

  • LineChart (with legend, simple design)

  • LineChart (single DataSet)

  • BarChart2D (with legend, simple design)

  • BarChart2D (single DataSet)

  • BarChart2D (multiple DataSets)

  • BarChart3D

  • PieChart (with selection, …)

  • ScatterChart (with squares, triangles, circles, … and more)