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
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
Let me know if you have any questions.
I need a formula to approximately calculate ‘ActualInterval’ value based on Maximum and Minimum Y-Axis values. This would solve my problem.
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.