I'm trying to use the PointToValue method of the SfChart control to create my own custom behavior (similar to the CrossHair behavior, but different enough that I couldn't use the built-in CrossHairBehavior). There seems to be something wrong with this method - the point that gets returned doesn't seem to quite match up with where the cursor is over the chart. It's off a little bit in the Y direction, and a little more in the X direction.
I've attached a sample to demonstrate. Run this sample app in Debug mode and watch the debug output as it reports the current position using the MouseMove event. If you place the mouse pointer right at the intersection of a couple of the grid lines, you'll see that the reported X and Y positions are off a bit. The Y value appears to be reported too low, just a little bit. But the X value is reported too high, a little more significantly off than the Y.
Any idea why this is, or know of a workaround to fix it? Also, the documentation on the PointToValue feature is a little confusing: http://help.syncfusion.com/ug/wpf/documents/transformdatatopoint.htm. The sample in that article refers to a "PointerMoved" event on the chart (as opposed to MouseMove), but I don't see that event available on the SfChart control. Am I just not seeing it for some reason, or is that a mistake in the docs?
Thanks,
Kevin Kuebler
Attachment:
SfChartPointToValue_ba756832.zip