I need to graph test data that is organized as follows:A single run of the test consists of 175 samples of data. The test itself consists of multiple test runs. I need to graph this data as a surface graph where the x axis is the run number, the y axis is the sample number, and the z axis is the result collected for that run/sample number.
In most cases, this graphs correctly with the xamScatterSurface3D control. However, I have noticed that when there are only a small number of test runs (eg, x ranged from 0-3, y ranges from 0-174), that only a fraction of the samples are graphed (in this example, y only graphs from about 0-60 and not 0-174). The axis itself displays the full range, but the data for anything past sample 60 (or thereabouts) is missing.
I have attached a sandbox project that just reads the test data from a csv file and databinds the data to the control's ItemSource (you will have to change the path of the file in the ViewModel class to reflect the path where you unzip the project to). You can see that while the data file contains all the appropriate data, the graph only displays a fraction of that data.I have found that I can devise a workaround by multiplying the x-coordinate by 10. If I do this (such that my x values are now 0, 10, 20, and 30 instead of 0,1,2,3), then the graph displays all of the data in the data file. However, I would be interested to know if I am missing a setting or something to get this to work properly without altering my data or if this is in fact a bug in the control.
Thank you for your assistance.
Hello Vonda,
I have heard back from our development teams on this matter. This appears to be an issue sparked by the precision of the XamScatterSurface3D chart. There is a setting on the XamScatterSurface3D control that should help you to get around this called "NormalizeTriangulation." This property is used when the magnitude of your axes is dissimilar, and this can cause the triangulation used internally to fall apart. By setting this property to "True," the chart will internally do some normalization of the magnitudes for plotting and mesh purposes. It will not effect the actual values in your ItemsSource, so you needn't to worry about that.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate Developer
I have reproduced this issue that you are seeing, and am currently in discussion with our development teams on this to see if it is a bug or if something is missing. I have also reproduced the behavior in which if you multiply the X-value by 10, you receive a more accurate surface plot. This leads me to believe it is likely an issue with the XamScatterSurface3D control, but I would like to confirm this first.
I hope to have more information for you on this shortly. Please let me know if you have any other questions or concerns on this matter.