Hi,
You guys have done a great job on the panning and zooming. I just wondered if there was anyway of increasing the sensitivity of the zoom. At the moment I am finding that I am having to scroll the mouse wheel several times to get a closer view of the data and I was thinking that the whole thing would feel a bit more responsive if I could increase the sensitivity.
Thanks
Marcus
Hi, Marcus
Please, find the full data chart zoom level control sample attached. You will need only to set the proper links to jQuery, modernzr and NetAdvantage for jQuery scripts.
The essence of the solution is:
1. Attach to the windowRectChanged event.
2. Inspect the old and new window rectangle values and recalculate as appropriate to your case.
3. Fire a function to update the chart window rectangle in a separate thread. This is necessary because if you do this from the event it will not have any effect. Changing the ui.newTop, etc. options also does not have effect.
4. Set a flag to true which will prevent another update after your custom zoom level is set. The function which changes the windowRect caused another windowRectChanged to be raised. This flag is called zoomInProgress in the example.
Also, the example uses a function to check certain conditions which will also prevent custom window rectangle, for example, in case of panning. Unfortunately, it is very hard and complicated to to detect zooming by dragging a rectangle in the chart and we do not detect this case, and still update the chart.
There is a variable called zoomRatio in the example which controls how to affect the zoom speed, e.g. increased/decreased relative to the default one. Do post here or drop an e-mail if you need some more info.
As to the new release, I cannot state an exact date, but you know that we release twice a year, and the new 12.2 release will not make an exception. You can expect it some time in the last quarter this year, probably closer to the beginning of the quarter than to the end.
Cheers, Lazar
Thanks for the update Lazar!
To be honest you haven't really sold me your solution ;-) However, I wouldn't mind a look at it anyway, just out of interest to help me better understand the components and how they work even if it's not usable.
Do you know if there is another release of the jquery tools scheduled any time soon? The components are great so far, but there are a few extras which I'm really hoping get included soon.
I found a solution for this case but it really is not very good both from end-user and developer perspective. From one side it causes flicker and from the other it is more like a hack than an elegant piece of code. That is why I am not giving it now and I suggest that you wait for this feature to be implemented. Sure, if you need this now I can post sample code to you - beware it is ugly and complicated :-)
Regards, Lazar
Thanks Lazar, I have submitted the feature request.
The URL for feature request is http://devcenter.infragistics.com/Protected/RequestFeature.aspx?__redir=1
This is in our developer center and you will need login and password to reach this location. Probably you will be able to log in with your forum ID and password, but in the worst case just create a new login.