11-14-2012 11:57 AM
I need to draw a simple 2d line chart with x and y-axis but I am not sure what is the best approach.
For input, the application will have a set of data points (i.e: (3,4),(1,2), etc...) so it would be an acceptable solution to
just draw an image that contains the drawn out line chart.
11-16-2012 01:47 PM
There are two approaches you can use here. the IDE documentation has a chapter that talks about how to use OpenGL for 2D rendering. In the case of drawing lines, you would do that with glDrawArray. Other functions are available in GL ES 1.1 and 2.0 for drawing filled triangles as well. OpenGL experience would be an asset here as higher level calls for doing some of these operations are not available.
If you were looking for a higher level API, you can try out the Skia 2D library. A port of the library is available for BlackBerry 10 on our GitHub site. IF you go to the native microsite and look at the graphics libraries page(http://developer.blackberry.com/native/beta/docume