Kallol,

You should look in your browser's javascript console to see if there is an
error.  I expect you will see that selectedValues[0] is returning
undefined, so you can't access the 'range' property on undefined.  This
would happen when there is no selection, which is the case if you click on
the currently selected item so it becomes unselected.  So you should test
whether there is anything returned by selectedValues[0].

On Tue, Jan 6, 2015 at 2:41 AM, Kallol Das <[email protected]> wrote:

> Thanks Daniel for your response,
> I tried as you have suggested
>
> google.visualization.events.addListener(control, 'statechange',
>    function() {
>     alert('Hi');
>     var value= control.getState().selectedValues[0].range.start;
>     alert(value);
>     //
>  
> makeAjaxCall(control.getState().selectedValues[0].range.start,control.getState().selectedValues[0].range.end);
> });
>
> But, I couldn't get second alert(value) after first alert.
> Am  I still missing something.
>
> --Kallol
>
> On Wednesday, December 24, 2014 6:57:35 PM UTC+5:30, Kallol Das wrote:
>
>> Hi All,
>>
>> I am developing a dashboard application where I need to create a grand
>> timeline which can drill down to week level from year...month...etc.
>> Also, there is a bar chart which contains separate data set. This bar
>> chart needs to respond as per changes happening in the time line.
>> Any suggestion is welcome.....Thanks.
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to
> [email protected].
> Visit this group at
> http://groups.google.com/group/google-visualization-api.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>  -
978-394-1058
[email protected] <[email protected]>   5CC, Cambridge MA
[email protected] <[email protected]> 9 Juniper Ridge
Road, Acton MA

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to