click chart get DefaultOHLCDataset values

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
lia
Posts: 18
Joined: Sat Oct 14, 2006 5:02 am
Location: Victoria BC

click chart get DefaultOHLCDataset values

Post by lia » Sat Jul 28, 2007 10:34 pm

I have a chart with a DefaultOHLCDataset. When I click on the chart, I get x and y coordinates from the click event. I am able to translate the click point to data space values by using translateScreenToJava2D. However that is not what I want to do. I want to be able to click on the chart and then display the high, low, open close and volume values that correspond to the mouse click.
I am really stuck. I have looked at the api for DefaultOHLCDataset and ChartPanel and I do not see any way to make this jump. Does anyone know how to do this??

Locked