问题描述
如何显示在使用边缘的API的BlackBerry应用程序的饼图?
是否有控制在RIM的API或如何能不能做到可用?一些可以帮助我通过共享code段
How to display a pie chart in blackberry application using rim apis?Are there controls available in the rim apis or how can it be done? Can some help me by sharing the code snippet
推荐答案
该谷歌图表API允许你提供一个网址给谷歌的服务,这反过来又返回图表图像。因为数据可以从黑莓智能手机通过并在BlackBerry智能手机产生相应的图表图像此功能是黑莓智能手机是有用的。
The Google Chart API allows you to provide a URL to the Google service, which in turn returns a chart image. This capability is useful from the BlackBerry smartphone because data can be passed from the BlackBerry smartphone and generates a corresponding chart image on the BlackBerry smartphone.
在这里,你可以做聊天的类型
here are the type of the chat you can do
下面是在谷歌API定义的聊天类型。
Here are the chat types defined in Google API.
public static final String LINE_C = "lc";
public static final String LINE_S = "ls";
public static final String LINE_XY = "lxy";
public static final String BAR_HORIZONTAL_STACKED = "bhs";
public static final String BAR_VERTICAL_STACKED = "bvs";
public static final String BAR_HORIZONTAL_GROUPED = "bhg";
public static final String BAR_VERTICAL_GROUPED = "bvg";
public static final String BAR_ = "b";
public static final String PIE = "p";
public static final String PIE_3D = "p3";
public static final String PIE_CONCENTRIC = "pc";
public static final String VENN = "v";
public static final String SCATTER = "s";
public static final String RADAR = "r";
public static final String RADAR_SPLINES = "rs";
public static final String MAP = "t";
public static final String GOOGLE_O_METER = "gom";
public static final String QR_CODE = "qr";
您需要做的一切都是为了请求聊天的URL。它会下载作为图像到您的设备。 URL格式如下。
The all you need to do is to request the chat URL. it will download as image to your device. The URL format is given below.
<一个href=\"http://chart.apis.google.com/chart?&cht=p3&chd=t:250,100,40&chs=320x200&chl=Apple||http://chart.apis.google.com/chart?&cht=p3&chd=t:250,100,40&chs=320x200&chl=Apple||Mango
CHT =图表类型
CHD =图表数据
CHS =图表大小
CHL =图表标签
cht = chart typechd = chart datachs = chart sizechl = chart label
享受。
这篇关于如何显示在黑莓应用程序饼图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!