This is your resource to discuss support topics with your peers, and learn from each other.
This article applies to the following:
BlackBerry® smartphones based on Java® technology
The following sample code demonstrates how to create custom graph fields. The sample contains the following classes:
BarGraphField - A custom field that draws a bar graph
BarScreen - A screen demonstrating the use of BarGraphField
BlackBerryGraphs - The main application
GraphDemoScreen - The introductory screen for the sample application that allows a BlackBerry smartphone user to choose the type of graph to preview
GraphField - The base class that the other *GraphFields extend
LegendField - A custom field that draws a legend
LineGraphField - A custom field that draws a line or scatter graph
LineScreen - A screen demonstrating the use of LineGraphField
PieGraphField - A custom field that draws a pie chart
PieScreen - A screen demonstrating the use of PieGraphField and LegendField
The entire sample can be downloaded here. The following are some sample screen shots that illustrate the custom graph fields.