BarChart IntervalXYDataset: Labeling the bars with value?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
talentfree
Posts: 4
Joined: Wed Feb 11, 2015 9:55 am
antibot: No, of course not.

BarChart IntervalXYDataset: Labeling the bars with value?

Post by talentfree » Thu Mar 26, 2015 11:04 am

I've another question on BarCharts.
I use an IntervalXYDataset and trying to write the values of the bars somewhere, above or inside of the bar. I found some help, but only with different datasets and the function to turn on the labeling was bound to the dataset...
My code is still like in my other thread: Bar-Color depending on the value.

Can I please get another push in the right direction?
Thanks!

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: BarChart IntervalXYDataset: Labeling the bars with value

Post by paradoxoff » Sun Mar 29, 2015 8:36 pm

Have you tried IntervalXYItemLabelGenerator?

talentfree
Posts: 4
Joined: Wed Feb 11, 2015 9:55 am
antibot: No, of course not.

Re: BarChart IntervalXYDataset: Labeling the bars with value

Post by talentfree » Mon Mar 30, 2015 12:30 pm

That one works now, thanks. I tried XYItemLabelGenerator, which didn't work out.

Locked