Reputation: 9295
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);
}
...
}
}
Upvotes: 3
Views: 185
Reputation: 32391
You can add custom text labels on the X axis this way:
renderer.addXTextLabel(x, "text");
Upvotes: 1