Guest User

Untitled

a guest
Jul 19th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. // graph with dynamically genereated horizontal and vertical labels
  2. GraphView graphView = new GraphView(
  3. this // context
  4. , new GraphViewData[] {
  5. new GraphViewData(1, 2.0d)
  6. , new GraphViewData(2, 1.5d)
  7. , new GraphViewData(2.5, 3.0d) // another frequency
  8. , new GraphViewData(3, 2.5d)
  9. , new GraphViewData(4, 1.0d)
  10. , new GraphViewData(5, 3.0d)
  11. } // data
  12. , "GraphViewDemo" // heading
  13. , null // dynamic labels
  14. , null // dynamic labels
  15. );
  16. LinearLayout layout = (LinearLayout) findViewById(R.id.graph1);
  17. layout.addView(graphView);
Add Comment
Please, Sign In to add comment