I am using Achartengine to create graph in my app.
I want that my X axes would be a string, for now I am here:
public class LineGraph {
public Intent getIntent(Context context){
String[] x = { "a", "b" };
int[] y = { 1 , 2 };
TimeSeries series = new TimeSeries("Line");
for(int i = 0; i < x.length; i++){
series.add(x, y);
}
...
}
}
You can add custom text labels on the X axis this way: