Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // graph with dynamically genereated horizontal and vertical labels
- GraphView graphView = new GraphView(
- this // context
- , new GraphViewData[] {
- new GraphViewData(1, 2.0d)
- , new GraphViewData(2, 1.5d)
- , new GraphViewData(2.5, 3.0d) // another frequency
- , new GraphViewData(3, 2.5d)
- , new GraphViewData(4, 1.0d)
- , new GraphViewData(5, 3.0d)
- } // data
- , "GraphViewDemo" // heading
- , null // dynamic labels
- , null // dynamic labels
- );
- LinearLayout layout = (LinearLayout) findViewById(R.id.graph1);
- layout.addView(graphView);
Add Comment
Please, Sign In to add comment