Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Zoom chart "maximized"?

    I have a diagram with canZoom(true), but the zoomed area shows (at start) only a part of the whole chart. How to "maximize" it so it starts showing all the chart? Then the user can make it smaller if he needs...

    Using smartgwt 5.0p power 20.03

    #2
    From your other posts you may already have figured this out, but zoomStartValue and zoomEndValue can be set to control the initial zoom position.

    Comment


      #3
      Thanks, this worked fine. If you don't "know" the first/last values, wouldn't it be nice to have a similar method but in percentage or something similar?

      Comment


        #4
        I just checked with other examples, and yes, sometimes I don't know the start/end date of the data presented. How to maximize the zoom are in these cases?
        Wouldn't be possible to have a .setMaximizedZoomArea(true) method ?

        Comment


          #5
          Ok, I compare all the values I get and it is possible to find out what are the mix/max values. This worked.

          Comment

          Working...
          X