Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 730
moo Avatar asked Nov 23 '25 01:11

moo


1 Answers

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.

like image 125
Dan D. Avatar answered Nov 24 '25 13:11

Dan D.