Convert mouse X coordinate to data value [message #211433] |
Sat, 13 January 2007 21:36 |
Eclipse User |
|
|
|
I am struggling with the following problem: I need to translate the
mouse coordinates, as it hovers over the chart, into the data domain
values. This is for the linear X-Y line chart, and the coordinates of
interest are X values.
To translate the X-coordinate of the mouse to the chart data value, one
would need to know the origin of X axis in the plot, and the location of
the first and last data point along it. Unfortunately, the BIRT
framework does not provide any hooks to discover the required values. I
tried Axis.getGapWidth() and Axis.getScale().getStep(), but both return
zero, even though the gap in my plot is obviously not.
Any suggestions for a workaround?
Thanks,
Alex Molochnikov
|
|
|
Powered by
FUDForum. Page generated in 0.03385 seconds