Annotation « BarChart « JFreeChart Q&A





1. Draw Line Annotation on Bar Chart    jfree.org

I would like to know how to draw a Line on a bar chart going from key 7 to key 10 in a Bar chart of 10 Keys. I know about XYLineAnnotaion but that requires XYDataset and I have got a category dataset - perhaps it's not possible to do what i'am trying with a category dataset. Can anyone help?

2. Annotation on subcategories in stackedbarchart    jfree.org

How would I place an annotation on subcategories? Say I have 2 categories, and each of those has 3 subcategories. I can only see how to annotate a category, not a subcategory. Also, is there any way to have a label that displays text instead of the actual value? I have subcategories which have stacked values. I'd like each division in ...

3. HowTo Annotate Stacked Bars?    jfree.org

4. BarChart with some marking (...or annotation?)    jfree.org

Hi I'm new in forum and I opened a new topic 'cause I can't find anywhere this information. I need to "mark" my StackedBarChart3D with numbers corrisponding to values of graph. This number could appear over the bar rapresenting it, of course. I tried to use Annotation class for stacked Bar chart but it not seems to do to my case... ...

5. StackedBarChart Series Annotations    jfree.org

CategoryTextAnnotation cta = new CategoryTextAnnotation( "Just Some Label", "Category 2", 15 ); cta.setCategoryAnchor( CategoryAnchor.START ); cta.setTextAnchor( TextAnchor.BOTTOM_LEFT ); m_plot.addAnnotation( cta ); cta = new CategoryTextAnnotation( "Another Label", "Category 2", 50 ); cta.setCategoryAnchor( CategoryAnchor.START ); cta.setTextAnchor( TextAnchor.BOTTOM_LEFT ); m_plot.addAnnotation( cta ); cta = new CategoryTextAnnotation( "Me too", "Category 2", 90 ); cta.setCategoryAnchor( CategoryAnchor.START ); cta.setTextAnchor( TextAnchor.BOTTOM_LEFT ); m_plot.addAnnotation( cta );