Ignition - Graph mode selector / JFreeChart

Hi all,

I am starting develop some addons apps and modules for Ignition and was wondering if anyone could offer advise regarding JFreeChart.

With the Chart components in Ignition we have a mode switch, with different options - the main one I am interest in is X-Trace:

But when creating a default test graphs in JFreeChart, the same is not available, I am unsure if this is part of the JFreeChart component or if it is added on by IA. I can't find source code for the Ignition Chart components, so I assume it is not shared.

I wanted to replicate the XTrace feature in a Java Swing test app, before going further with my projects. See swing test app below (using TimeSeriesChart):


Any advice on how this can be accomplished, whether it is built into JFreeChart (and i have missed the documentation) and any other comments are appreciated.

Many thanks,


In XTrace mode we're (essentially) just adding a bunch of org.jfree.chart.annotations.XYTextAnnotation markers (really fast) whenever the mouse position changes.

@pturmel may also have some advice, possibly free or possibly not, given his NoteChart module.

I completely rewrote X-Trace for my NoteChart module (because the IA implementation was too lame for my needs).

You would need to use reflection and access overrides to get at the mode switch current state.

In that case are you able to recommend a better way of implementing. I have only just started using JFreeChart, so I am a little new. Any help or recommendations for modules is appreciated.

Not really. My "secret sauce" would not stay secret if I show you how to do this. (FWIW, I did not reimplement the menu.)

Ah no worries completely understandable, I don't need anything special so I will try have a look at the .XYTextAnnotation markers that Paul mentioned. Thanks!

Hi Paul,

any chance you can expand on this by providing an example?