Then you can easily create it with a few lines of code (see snippet):
// 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);
Exported .jar lib - https://github.com/downloads/jjoe64/GraphView/GraphView-2.5.jar
Source code here.....
plz can u send me the source code--shivu
ReplyDelete