Android 圖表庫:Android GraphView
Graph View 是一個靈活,美觀的android 圖表庫,現在只有折線圖和條形圖兩種圖表樣式,易于使用,整合和定制。可以使用在android 1.6以上的版本。
功能概述
- Two chart types
Line Chart and Bar Chart. - Draw multiple series of data
Let the diagram show more that one series in a graph. You can set a color and a description for every series. - Show legend
A legend can be displayed inline the chart. You can set the width and the vertical align (top, middle, bottom). - Custom labels
The labels for the x- and y-axis are generated automatically. But you can set your own labels, Strings are possible. - Handle incomplete data
It's possible to give the data in different frequency. - Viewport
You can limit the viewport so that only a part of the data will be displayed. - Scrolling
You can scroll with a finger touch move gesture. - Scaling / Zooming
Since Android 2.3! With two-fingers touch scale gesture (Multi-touch), the viewport can be changed. - Background (line graph)
Optionally draws a light background under the diagram stroke. - Custom Style
change the color and thickness, label font size/color and more - Realtime / Live
append new data live or reset the whole data - BarChart: Value dependent color
- GraphViewDataInterface
You can use your own model as data. Just implement GraphViewDataInterface. - .. and may more
Take a look at the GraphView-Demo project.
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!