- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGraphViewDemo.java
More file actions
Latest commit
21 lines (19 loc) · 709 Bytes
/
Copy pathGraphViewDemo.java
File metadata and controls
21 lines (19 loc) · 709 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
packagearnodenhond.graphviewdemo;
importandroid.app.Activity;
importandroid.os.Bundle;
/**
* GraphViewDemo creates some dummy data to demonstrate the GraphView component.
* @author Arno den Hond
*
*/
publicclassGraphViewDemoextendsActivity {
@Override
publicvoidonCreate(BundlesavedInstanceState) {
super.onCreate(savedInstanceState);
float[] values = newfloat[] { 2.0f,1.5f, 2.5f, 1.0f , 3.0f };
String[] verlabels = newString[] { "great", "ok", "bad" };
String[] horlabels = newString[] { "today", "tomorrow", "next week", "next month" };
GraphViewgraphView = newGraphView(this, values, "GraphViewDemo",horlabels, verlabels, GraphView.BAR);
setContentView(graphView);
}
}