we're using splines on some of our plots, and this is working beautifully so far (this new feature arrived just in time with 1.0.9

Is it possible at all (even if I need to extend XYSplineRenderer)?
Thks,
Andre
I cannot think of an easy way even if you were to extend the XYSlineRenderer. One of the demo applications shows how you can get the position of the mouse cursor over the plot both in Java2D pixel-space and in JFreeChart data-space. The demo source code would have come with the developer's guide, but I believe some forum posts have examples of how to explicity do this. Not an elegent solution, but it would work.blueser wrote:Is it possible at all (even if I need to extend XYSplineRenderer)?
My first approach would be to copy the code for drawPrimaryLineAsPath(...), throw out all the drawing related stuff. Check whether your X is within <precision> to the temporary points in the most inner loop and return the calculated Y.blueser wrote:we need to find what's the Y-value corresponding to a specific X-value given a spline curve, where this X-value doesn't belong to one of the control points.