Hi all
I want to add images at particular points in Time Series chart.
In normal XYChart this can be achieved using annotation as below
XYPlot plot = chart.getXYPlot();
ImageIcon imageIcon = null;
imageIcon = new ImageIcon("D:/JFreeChartDemo/JFreeChartDemo/src/demo1/img2.png");
XYAnnotation xyannotation = null;
xyannotation = new XYImageAnnotation(10, 10, imageIcon.getImage());
plot.addAnnotation(xyannotation);
Above code will display image at co-ordinates (10,10).
I tried to do same thing for Time Seried chart but failed. I think I am not getting the co-ordinates right. As it is a Time Series chart X-axis represents time (in my case seconds) and I think I am giving wrong X-offset.
Thanks in advance