This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi Jason, I would like to know if it's possible to save the zoom state on a scatter chart, so that when I add a new serie the zoom remains in the same state that I left. Best regards, Raphaela. |
|
|
Hello Raphaela Currently there is no option to do this, but I've added this to my to-do-list as this would be really handy. For now, you'll need to grab the ActualMinimum and ActualMaximum values from each axis before adding a new series, and then set the values back after adding the series. Jason Fauchelle |
|
|
Hi Jason ! I'm having problems to save the zoom state. I've a chart inside a TabItem on a TabControl. If I apply a zoom, change the Tab and back again, the zoom is lost. I grab the ActualMinimum and ActualMaximum values from each axis using the chart event ChartZoomed(). Then, I set the values back when the event TabControl_SelectionChanged is called (I identify if the tabitem is the tab that have my chart and call an OnLoad() event created by me that set the values back), but this isn't working. I tried to use another chart events like FinishedPlottingData() and Data_Loaded(), but any of them worked. What I'm doing wrong? Best regards, Raphaela. |
|
|
Hello Raphaela Here are some things to try: If you are not doing so already, it will be best to have some kind of model involved in each tab, or at least to represent the state of each chart. This model should have properties to hold the current ActualMinimum and ActualMaximum of each axis you need to manipulate. Then the chart axes can bind to these properties with two way bindings. This should maintain the zoom state during changing tabs. Another alternative would be to set those properties in a Chart.Loaded event handler, or/and use a dispatcher to invoke a method that sets the properties. If it is still not working, feel free to send over a simplified version of your project and I can work out what the best approach would be. If you can not send a project in the forums, you can send it to jason@mindscape.co.nz. -Jason Fauchelle |
|