Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Zoom chart initial zoom range

$
0
0
Hi,
I'm using SmartGWTPro version 4.0-010514.

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 tried to use setZoomStartValue to display the whole dataset. setZoomStartValue takes the starting object which changes every time the data set changes. It works the first time. When user changes the query and new data set is displayed and setZoomStartValue is called, I get java.lang.IllegalStateException - this property cannot be changed after the component has been created. I also tried to get access to RangeSlider using getZoomChartSlider() but it's always returned as null. Basically I want my range slider to cover the whole range intially when the data is displayed.

Is there any other way or better way to reuse the same chart object for displaying different data sets and displaying the whole data set in the main chart?

Viewing all articles
Browse latest Browse all 4756

Trending Articles