如何使用rim apis在黑莓应用程序中显示饼图? 轮辋apis中是否有可用的控件或如何操作?有些人可以通过共享代码段来帮助我
答案 0 :(得分:1)
Google Chart API允许您为Google服务提供网址,而Google服务又会返回图表图片。此功能在BlackBerry智能手机中非常有用,因为可以从BlackBerry智能手机传递数据并在BlackBerry智能手机上生成相应的图表图像。
这是您可以进行的聊天类型
以下是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格式如下。
http://chart.apis.google.com/chart?&cht=p3&chd=t:250,100,40&chs=320x200&chl=Apple|Grapes|Mango
cht =图表类型 chd =图表数据 chs =图表大小 chl =图表标签
享受。