Dear Infragistics Support team,I have been using xamDataChart to present live data, and have 3 questions regarding this since I was unable to find the solution neither in SampleBrowser nor on this Forum. I am receiving data every second and representing it with LineSeries. 600 data points are the maximum to be shown - Starting from 10 minutes into the chart I am deleting the oldest point and showing the new one.1. Is there a way to set the limits for the zooming? Let's say I want 1 second (on X axis) to be the maximum. Or maybe to have 5x, 10x zoom i.e.? The best solution would be to set the limit on both Horizontal and Vertical Zoom.2. I have left the Interval and MinorInterval of the CategoryXAxis to be automatically set (Strokes are set) because the performance is better than when using MinorInterval=1. Although the behavior is very nice at the moment, I would ideally change the density of the labels dynamically - first it could be every point, then every 10th, then every 30th etc. As soon as I zoom in I would show label for every second again.3. Is it possible to make automatically zooming in after the 60seconds? So, I would have a maximum of 600 datapoints but would force a window of 60 datapoints. (the third point is the least important and basically a backup for point 2)Chart Example is shown at the screenshot.Thank you very much in advance,Milan
I will. Thanks
Hi Milan,
Not sure what the "autoscroll" behavior would entail but if you'd like to see any of this stuff added to the product in the future you can submit them as product ideas here: http://ideas.infragistics.com
Hi Rob,Yes, I have noticed that behavior, but I guess that I have more specific need in order to make both things work.Anyways, I have managed to pull it through somehow - with always calculating new WindowRectMinWidth and RectMaxWidth as long as new data arrive. This enabled me to show a maximum 60 (out of 600) values in a fixed window, but to zoom in to a certain minimum and then have this fixed window smaller until zooming out back to the RectMaxWidth.Also, I have added "autoscroll" behavior depending on the position of the horizontal zoombar. I guess you could consider implementing some of this functionalities in the future?All the best,Milan
WindowRectMinWidth should actually be influencing both the width and height already. For example, if I set the WindowRectMinWidth to 0.5 and I try to zoom in it will stop the zoom on both the X and Y axis and the WindowRect.Width and WindowRect.Height will both be clamped to 0.5. Are you not seeing that behavior?
If you want to stop the Height at a different zoom value than the Width then you'll need to manually check if the WindowRect.Height has passed your minimum value and then set it to that value to clamp it.
Also,I have now found out this old topic on your forum - http://ko.infragistics.com/community/forums/t/55945.aspx, which gives me an even simpler solution to my request no.3. I can just force a rectangle size (and add autoscroll) by using chart.WindowScaleHorizontal.But sadly, this is still in contrast to my will to have both the window rectangle maximum (60 values) and zoom-in maximization in both axes ( WindowRectMinWidth enables me maximizing zoom on x axis)Milan