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
|
Hello, I'm using an older version of WPF Elements (5.1.1822.22277) in C# with VS2010. I know I should probably update to the latest version but that is not an option at present. We have implemented a line chart using your library; I have attached a screen shot. In the example plot I would like zoom to the rectangle outlined in green, such that the selected area enlarges to become the entire visible plot area. When I do that, an event handler in in the chart view model is called, in this example with the event arguments YZoom=0.034474, XZoom 0.251489 (approx). Taking the y-axis as an example, its axis view model has ActualMaximum=271.54994, ActualMinimum=234.4964263, Maximum=1082.010877, Minimum=7.194738579. My question is, how do I use the information in the event arguments (YZoom=0.034474) in order to set the Y-axis Minimum and Maximum correctly (200 and 400, respectively)? Thanks, Darrell |
|
|
Sorry, I'm unable to upload the screenshot I mentioned. The selected zooming rectangle went from 200 to 400 on the vertical (y). |
|
|
Hi, Sorry I don't quite understand what you want to implement here. When enabling zooming on the chart (via the Chart.ZoomMode property), dragging the mouse over the chart will create a zoom box, and then releasing the mouse will cause that selected area to become the new viewport. Sending that screen shot will help me understand the problem here. If this does not work through the forum, please send to jason@mindscape.co.nz -Jason Fauchelle |
|