Hi,
I am facing a problem with XamDataChart (NumericXAxis and NumericYAxis). Data is dynamic loaded but XamDataChart is placed in a non-selected TabPage. Moreover, NumericYAxis maximum and minimum are set (code behind) depending on the loaded data range.
If XamDataChart is visible, visually NumericYAxis has a correct interval, but in code behind, ActualInterval [https://ko.infragistics.com/help/wpf/infragisticswpf.controls.charts.xamdatachart~infragistics.controls.charts.categoryxaxis~actualinterval] is not updated; it belongs to the previously loaded data.
The following are a summary of my chart settings:
Any idea how to enforce updating ActualInterval property?
I am using Infragistics WPF UItimate (version 18.1.20181.176).
Hello,
Thank you for contacting Infragistics. From my understanding you wish to update the axis range. This will only occur after removing a series.
Hi Michael,
Thank you very much for your response. As I mentioned earlier, I remove all series from my XamDataChart by each new data arrival. My XamDataChart is always in the background.
It seems that ‘ActualInterval’ property calculated ‘ONLY’ if XamDataChart got focus. I send a simple WPF application shows that adding Scatter Line Series to XamDataChart would not update ‘ActualInterval’ while it is not visible.
In my application, I need ‘ActualInterval’ to draw several ScatterPolygonSeries with width approximately 10% of ‘ActualInterval’. I tried also to create event handlers for both XamDataChart and NumericYAxis GotFocus() events and then update the width of my ScatterPolygonSeries lines there, but still not working as expected.
I need a formula to approximately calculate ‘ActualInterval’ value based on Maximum and Minimum Y-Axis values.
1464.ChartApp.zip
I reproduced the behavior in your sample and created a development issue 258182 to allow a developer to investigate this more depth.
I also created a private support case to follow up with you CAS-198338. You can access this case when signed into your Infragistics account and clicking Support Activity and view what is marked "In Development".
Let me know if you have any questions.
It was determined that the interval is not updated until the component is loaded. Data is detached when the component is not loaded. Let me know if you have any questions.
You may acquire the latest source code from your account pagehttps://ko.infragistics.com/my-account/keys-and-downloads
1. Click the volume in the table list
2. Click "Source Code" tab
3. Select Infragistics WPF
We provide the source code for all the service releases in a particular volume.
The forum you are pointing to does not contain the exact formula I need (as the other user also confirmed). I searched also in NumericYAxis class source code for an answer. I am planning to postpond adding 'ScatterPolygonSeries' to XamDataChart to the moment that it is getting focus. It is not the expected solution, but at least it solves issue.
This was previously discussed on the following forum:
https://ko.infragistics.com/community/forums/f/ultimate-ui-for-wpf/84947/how-xamdatachart-calculates-interval-on-numericyaxis
I need a formula to approximately calculate ‘ActualInterval’ value based on Maximum and Minimum Y-Axis values. This would solve my problem.