Adding an Annotation to a Category Chart

You would do something similar but use the category text annotation:from org.jfree.chart.annotations import CategoryTextAnnotation chart = event.source.parent.getComponent("Chart") plot = chart.getChart().getCategoryPlot() plot.addAnnotation(CategoryTextAnnotation("Hello World", "Category", 25.0))