Hello,
I am getting this xamDataChart curve in my code when I run it.
Is there a specific reason why would this happen? It's driving me crazy!
Screenshots are attached herewith.
Hello PD,
I apologize for the delay in my response.
Unfortunately, the video that you had provided doesn't seem to work correctly on my machine. I'm not entirely sure why this is, but after an investigation of the sample code that you had provided, I believe that everything looks pretty standard, and that there isn't really a glaring reason in the sample code that you have provided that would lead to a chart like the one you have provided a screenshot of originally.
This is all going on speculation though, as I was unable to actually run a project with the sample code that you had provided, as I am missing most of the custom types that are referenced in different ways by the sample code that you have provided. As all of these things look standard, the areas that I need to question here are the model.CDFResults[ViewModelIndex].DataPoints collections that you are using for the ItemsSource of the LineSeries and the CategoryDateTimeXAxis in the GetBaseLineSeries and GetBaseDateAxis methods of your TypeCurves_PluginAnalysisPluginView.cs file. As long as the ViewModelIndex property remains consistent here, I would imagine that these collections would be the same, but I have no way to check the contents of these collections, and so I can't really see the type of line that they would create.
If it would be possible for you to please provide a runnable sample project that reproduces this issue, it would definitely help us to assist you in resolving this issue that you are seeing with the XamDataChart.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate Developer
Hello Andrew.
The dataset is not fluctuating in nature. The curve points are correct and that is what it should have shown.
I am attaching a small video to demonstrate the issue and also a code snippet.
Let me if that helps.
Thank you for your post.
I am a little bit unsure of why this XamDataChart curve that you are seeing is "weird" as you had said. It appears to me that you are using a CategoryDateTimeXAxis with a NumericYAxis, and the series appears to be a LineSeries that appears to fluctuate quite a bit. Please correct me if my impression is wrong on that matter. One thing that I do notice about your screenshot that is slightly odd is the fact that all of the markers for your series are on the bottom part of the fluctuation of your series. I am not entirely sure why this would be, but I don't believe that's what you are asking about here.
I am curious as to what your data source looks like to create this sort of curve, as I would imagine that a wildly fluctuating data source for your series is what would cause this. Would it be possible for you to please provide some more detail as to what is so "weird" about the curve that you are seeing? For example, would it be possible for you to please include some details about how you data source is laid out, or possible a small, isolated sample project that reproduces this issue so that I can further understand this unwanted behavior you are currently seeing?
Sincerely,AndrewAssociate DeveloperInfragistics Inc.www.infragistics.com/support