Hello, i'm search this in forum but...
In my chart there are some horizontal bars but some of them are empty and I need fill this with labels. I use for this XYPlot, XYBarRenderer and XYIntervalSeriesCollection and I think create this labels with Annotation.
My problem is in obtain y-value for create a annotation
new XYTextAnnotation("ANNOTATION", (double) time.getFirstMillisecond(), Y-VALUE)
Anyone know how to do it?
Thanks!
Annotation in barcharts (Y-value)
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
You'll need to use the y-value from your dataset for whichever bar you want the label to appear in.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

