i want to create one app which draw different charts like pie chart, line chart, mixed 开发者_如何学运维chart etc. Is the any API available to do so.If yes then please give me link. And of no then is there any alternative for that.
AFAIK, there is no such chart drawing BB APIs right out of the box. So you should create your own custom ChartField
by extending Field
. Override Field.paint(Graphics graphics)
to draw whatever you need. Graphics
API offers a lot of drawing methods, so it is definitely doable.
RIM have a knowledge base article about drawing graph fields:
http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800345/How_To_-_Create_graph_fields.html?nodeid=1889634&vernum=0
This shows how to create different tyes of graphs such as pie, line, bar.
精彩评论