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 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
转载本站原创文章,请注明出处,并保留原始链接、图片水印。
本站是一个以用户分享为主的开源技术平台,欢迎各类分享!