Blackberry Bar-Graph Field & Output

Pass the values to Bar-Graph Field


VerticalFieldManager graphLayout = new VerticalFieldManager(
  VerticalFieldManager.FIELD_HCENTER);

// Graph
BarGraphField _barGraph = new BarGraphField(values, colors, 
  10, 1, 10, BarGraphField.PADDING_MEDIUM, 
  BarGraphField.PADDING_MEDIUM,true);
_barGraph.setPadding(2, 10, 5, 10);
graphLayout.add(_barGraph);

Output:

Comments

  1. how to set fields in x axis ? . in y axis it is as 1,2,....10. But i want to add values like 1,2,..5. How ?

    ReplyDelete

Post a Comment

Popular posts from this blog

Input filter (space not allowed) for EditText

Android Versions details

English - Formal and Informal words