Get range of the selection in terms of data.

38 views
Skip to first unread message

Aman Jain

unread,
Oct 18, 2014, 2:25:15 AM10/18/14
to envis...@googlegroups.com
I am new to use envision.js. I didn't find the lot from documentation. Can anyone please help me out and tell me these things?

1. Is there any event get fired when the selection is changed?

2. Is there any way to get the range using code?

3. Can I have some examples of custom Templates with explanation to attributes?

Please refer to this example to answer question 1 and 2: http://www.humblesoftware.com/envision/demos/finance


Any tips or solution will be a great help for me.

Thanks,
Aman

Valentine Bondar

unread,
Nov 22, 2014, 5:48:37 PM11/22/14
to envis...@googlegroups.com
Any luck on extracting the values of the selected range?

Valentine

Valentine Bondar

unread,
Nov 22, 2014, 7:35:41 PM11/22/14
to envis...@googlegroups.com
I have figured it out. Look for the 'flotr:mouseup' function in envision.js.
Should be around line 4158. I put an alert("hello"); on line 4162 (in the       if(selection.selecting && selection.selectionIsSane()){} statement ). 

It fires only if once the user made the selection and 'mouses up'.

Hope that helps,
Valentine.

On Friday, October 17, 2014 11:25:15 PM UTC-7, Aman Jain wrote:
Reply all
Reply to author
Forward
0 new messages