Blackberry Bar-Graph Field & Output
Pass the values to Bar-Graph Field
Output:
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:
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