# Adding an Annotation to a Category Chart

**URL:** <https://forum.inductiveautomation.com/t/adding-an-annotation-to-a-category-chart/6175>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [April 8, 2013, 7:25pm UTC](https://forum.inductiveautomation.com/t/adding-an-annotation-to-a-category-chart/6175 "2013-04-08T19:25:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [April 8, 2013, 9:42pm UTC](https://forum.inductiveautomation.com/t/adding-an-annotation-to-a-category-chart/6175/2 "2013-04-08T21:42:51Z")

</div>

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))`

---

_[View the full topic](https://forum.inductiveautomation.com/t/adding-an-annotation-to-a-category-chart/6175)._
