I am new to Graph concept in android. In my app i want implement the line graph using achartengine. I have the demo of achartengine it consists a lot of code. I am not able to understand the line graph. I want simple Line graph using achartengine. Please can anybody help me.
thanks
Following method will generate random points (x,y) and add it to XYSeries (it is series of points to be plotted on chart).
Following Method will return a multiple renderer which is used to draw line charts.
Following method will set the settings for your chart. You can look for more options in docs provided by AChartEngine.
You can now get the line chart in two ways:
Chart as a view which can be added to any layout:
ChartFactory.getLineChartView(this,getDemoDataset(), getDemoRenderer());
Chart as an Intent for a new activity alltogether
ChartFactory.getLineChartIntent(this,getDemoDataset(), getDemoRenderer());
PS:
SERIES_NRis a constant which tells how many line series you want to draw.