A while back, I was looking to implement a pan feature for my ChartView3D, Telerik directed me to this feature request. It says you aren't implementing the feature but it does contain sample code to allow me to manually pan the view myself. I have attached a copy of the sample to this post.
It all mostly works. but I've noticed that the horizontal panning is not true horizontal panning. If you hit the left or right arrow button just a few times sure it looks that way. But as you keep moving it left or right and the chart approaches the edge of the windows, it begins to move downward also, as if it were the edge of a large, rotating wheel.
What I need is true XY panning. So that if I hit the left button the scene moves left ONLY, not up or down, no matter how far I move it.
Is there some way to adjust the code in the sample to achieve this? I'll admit that this sort of math is not at all my strong suit.
It all mostly works. but I've noticed that the horizontal panning is not true horizontal panning. If you hit the left or right arrow button just a few times sure it looks that way. But as you keep moving it left or right and the chart approaches the edge of the windows, it begins to move downward also, as if it were the edge of a large, rotating wheel.
What I need is true XY panning. So that if I hit the left button the scene moves left ONLY, not up or down, no matter how far I move it.
Is there some way to adjust the code in the sample to achieve this? I'll admit that this sort of math is not at all my strong suit.