I am using jfreechart (specially ChartFactory.createTimeSeriesChart()). Is there a way to signal events like Google Finance charts, see the A, B, C etc on the right and in the chart.
+1
A:
It's certainly possible; see org.jfree.chart.event
and org.jfree.data.general
for chart and data events. Also, check out the JFreeChart Demo (Java Web Start) entries under Miscellaneous > Crosshairs.
trashgod
2010-04-23 22:08:13
+1
A:
I don't see a way to do this easily. One possibility would be to place an [XYPointerAnnotaion][1]
(example here) on your chart, then create the legend on the right separately. You'd have to manage the mapping between the pointers on the chart and the entries in the legend yourself though.
Bill the Lizard
2010-04-23 22:22:36
yes, I have just implemented this. Using IntervalMarker or ValueMarker works for me. Don't need to put the legend on the right, it's ok inside the chart.
raticulin
2010-04-23 22:54:41