1

I have a bar chart as follows

enter image description here

I want to append some text to the labels so they would look like 2010 B 2011 C 2012 D

How can i achieve this? I know that we can write BarChartCustomizer but not sure how to get the labels for a particular bar.

Thanks in advance

Coder
  • 3,090
  • 8
  • 49
  • 85
  • 1
    Where does the data for the labels come from? – Lisa Sep 18 '13 at 13:09
  • Did you try to implement your own *JRChartCustomizer*? You can read the *Chart Customizer and Chart Theme* topic of [*JasperReports Ultimate Guide*](http://jasperreports.sourceforge.net/JasperReports-Ultimate-Guide-3.pdf) – Alex K Sep 18 '13 at 16:04
  • You can also read [How to display bar value for each bar in a bar graph?](http://stackoverflow.com/q/5140657/876298) post on *SO* – Alex K Sep 18 '13 at 16:06
  • 1
    You can also read [this posts](http://mdahlman.wordpress.com/tag/bar-chart/) by *Matthew Dahlman* aka *mdahlman* – Alex K Sep 18 '13 at 16:12
  • Finally ended up using groovy expressions in iReport to change the labels based on some conditions – Coder Sep 19 '13 at 01:50
  • @OpenSourceRulzz It is better to post your solution as an answer – Alex K Sep 28 '13 at 21:00

0 Answers0