This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Series.ConvertLogicalToPhysicalPoint returns points outside of chart when null samples are included in data. I am trying to make a foreground element, but when null data is present it seems that getting the physical location fails to return correct values. Some points are outside the bounds of the chart. I am using version 5.1.1865.22371. |
|
|
Hello dervin To help resolve this issue, I will need to know an example of a logical Point value that you are passing into the method, the incorrect physical value it returns and roughly what the physical value should be. I'll also need to know what type of data you are plotting along each axis (double, string DateTime?), and are you using an IAxisValueConverter on any of the axes? If possible, a repro project or/and an image would also be a great help. Hope to hear from you soon. Jason Fauchelle |
|
|
I am posting an example that uses doubles on the x, and y axis. This is a modification of the samples solution that you provide. I don't expect valid results when chart is clicked in the null region, but is there a way to make the valid region of the chart still work (from (5,5) to (10,10) in my example). In my real code in addition to using scale with doubles, I am also you using date time. Would a custom IAxisValueConverter allow me to handle this? Here is my test data:
Resources:
and finally I replaced the line chart in LineChartDemo.xaml with the following:
|
|
|
Hello dervin Thanks for the reproduction steps, I was able to reproduce and resolve this issue. The fix for this will be available in the next nightly build. The next nightly build will be available at around 1200 GMT and will be downloadable from here: http://www.mindscapehq.com/products/wpfelements/nightly-builds If you are using date-time data, it is recommended that you use a DateTimeAxisValueConverter on the X axis, but this won't affect this issue. Jason Fauchelle |
|