Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bar chart with textual x axis - achartengine

I am using achartengine's bar chart in my application. My x axis is not numeric but has text items. just like the pic shown below. Is there a way to make a bar graph like this using achartengine? Can I only display the text in the x axis and not the scale?

enter image description here

like image 278
Umang Avatar asked Nov 23 '11 08:11

Umang


1 Answers

I had a problem with clearXTextLabels() too, try this:

renderer.setXlabels(0);
renderer.addXTextLabel(0,"Electronics");
renderer.addXTextLabel(1,"Medical");
...
like image 61
Ercan Erden Avatar answered Sep 21 '22 20:09

Ercan Erden