Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
695
2-D zoom in and out
posted
I am trying to implement zoom feature in my chart and this post kind of helped me. http://forums.infragistics.com/forums/p/10624/40642.aspx#40642 You can use Alt + mouse scroll button in order to soom in/out 3D charts. In order to zoom in/out 2D charts you should enable axis' scroll. You can do this via code like so ultraChart1.Axis.Y.ScrollScale.Visible = true; ultraChart1.Axis.X.ScrollScale.Visible = true; But I think it is bit pain to click on those small buttons to zoom in and out. Is there a way to zoom in and out to preset zoom levels? So that I can implement it using context menu or something. Thanks Sreekanth
  • 28496
    Offline posted

     Just set the Axis.X.ScrollScale.Scroll and Scale properties in code.  Both of these properties should be set to a value between 0 and 1.

  • 695
    posted
    sorry. I am not sure why I am missing line breaks in this post. I tried to edit it couple of times.