5
votes

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

1
I want to display above chart with horizontal bar, and i want to display red, yellow, purple, green, blue from bottom to top.. give me suggestion for that. Thanks in Advance - Pratik Butani

1 Answers

8
votes

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

renderer.setXlabels(0);
renderer.addXTextLabel(0,"Electronics");
renderer.addXTextLabel(1,"Medical");
...