- 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'
}
可以查看具體支持的圖表類型
圖表類型
- 線性圖表 (with legend, simple design)
-
線性圖表
(with legend, simple design)
-
線性圖表
(cubic lines)
-
線性圖表
(gradient fill)
-
組合圖表 (bar- and linechart in this case)
-
BarChart (with legend, simple design)
- BarChart (grouped DataSets)
- 餅狀圖 (with selection, ...)
- 分散圖 (with squares, triangles, circles, ... and more)
- CandleStickChart (for financial data)
- 氣泡圖(area covered by bubbles indicates the value)