moo
moo

Reputation: 95

Achartengine bar chart labels

I'm working on a bargraph with achartengine, and I would like to put upon the bars custom values, instead of using setDisplayChartValues: is that possible?

It's because all the bars in the chart are clickable, so i made clickable a bar even if it is tall zero, adding 3 units: i must not show 3, but 0.

hope this is clear and you can help, thanks.

Upvotes: 3

Views: 811

Answers (1)

Dan D.
Dan D.

Reputation: 32391

You can add annotations instead of the regular chart values:

// add an annotation for each bar
series.addAnnotation("text", x, y);

You can download a version including this feature here.

Upvotes: 3

Related Questions