On Sat, Sep 15, 2012 at 7:28 PM, Marc Delisle <marc@infomarc.info> wrote:
Atul,

I have been exchanging mails with you, about the conversion, and I think
we should go public on this.

We are working on Status>Monitor. One of the features there, is to be
able to select a time span and fetch the related queries from the slow
log or the general log.

After some research, it seems that the jqplotMouseDown and jqplotMouseUp
events will be helpful to return the starting and ending positions for
the time span; however, as you said, it would be interesting to change
the color in the dragged region.

This example [0] is promising, but I'm not sure it would work on a chart
that is still moving.
 
It seems to work somewhat after [0]. Needs to be improved further

[0] https://github.com/zixtor/phpmyadmin/commit/02cdd209beb75bce3d1aafcb70fd284362aba2b1
 
The jqplotMouseMove event could be used instead of
.mousemove(), to get x/y coordinates relative to the chart itself.

[0] http://motyar.blogspot.ca/2010/02/draw-rectangle-with-jquery.html


--
Marc Delisle
http://infomarc.info

------------------------------------------------------------------------------
How fast is your code?
3 out of 4 devs don\\\'t know how their code performs in production.
Find out how slow your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219672;13503038;z?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Phpmyadmin-devel mailing list
Phpmyadmin-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel



--
Atul Pratap Singh
http://blog.atulsisodia.in/