Announcement

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

    Mini zoom chart right slider issue

    Hi,
    I'm using SmartGWTPro version 4.0p-20140318.

    I'm using zoom chart and I would like to display the whole data set in the main chart when the chart is initially displayed. After the chart is displayed user can zoom into a particular time range using mini chart at the bottom. My chart also allows the user to change the query which replaces the data set in the same chart object. I'm using setZoomStartValue() and setZoomEndValue() to set the first and the last point to display the whole dataset. This works fine the first time. After the chart is displayed and if user moves the sliders to zoom in and changes the query to display another data set, the left slider moves to the starting point but the right slider stays at the previous location. Due to this whole data set is not displayed. Since I'm calling setZoomEndValue() after the data is retrieved, the right zoom slider should move to the last point all the way to the right and the main chart should display the whole range.

    One more thing - If I just call setZoomStartValue() and do not call setZoomEndValue(), as per documentation "If zoomEndValue is not also set, the range shown will be from zoomStartValue to the end of the dataset." This is not working as documented. The range is not set to the end of the dataset.

    Am I doing something wrong?

    Thanks.
    Last edited by kirkpa; 27 Mar 2014, 07:00. Reason: Additional information

    #2
    We tried out the series of calls setData, setZoomStartValue(), setZoomEndValue() and it worked as expected.

    Note that if you are calling setZoomStart|EndValue() before calling setData(), that would have the effect you describe, but is just incorrect - call setData() first.

    If your code appears to be correct with respect to the above guidelines, we're going to need some way to reproduce the problem you're having.

    Comment

    Working...
    X