Jfreechart time series chart with events

I am using jfreechart (especially ChartFactory.createTimeSeriesChart ()). Is there a way to signal events like Google Finance charts, see A, B, C, etc. Right and on the graph.

google finance charts

+2


a source to share


2 answers


I don't see a way to do this easily. One possibility is to place [XYPointerAnnotaion][1]

( here) on your diagram and then create the legend on the right separately. You would need to control the display between the pointers on the chart and the legend items themselves.



+2


a source


Of course available; see org.jfree.chart.event

and org.jfree.data.general

for chart and data events. Also, look at the JFreeChart Demo (Java Web Start) entries under Miscellaneous> Crosshair.



+2


a source







All Articles