Skip to main content



      Home
Home » Archived » BIRT » Convert mouse X coordinate to data value
Convert mouse X coordinate to data value [message #211433] Sat, 13 January 2007 21:36
Eclipse UserFriend
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
Previous Topic:Dynamic number of series in chart
Next Topic:Inserting data into text using <value-of>
Goto Forum:
  


Current Time: Sat May 10 07:19:39 EDT 2025

Powered by FUDForum. Page generated in 0.03385 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top