Just wanted to say thanks for this post. It helped me resolve a year-old issue with resetting the control thumbs!
Grateful, Lauren On Thursday, August 23, 2012 1:44:47 PM UTC-4, asgallant wrote: > > It works just fine when I do it: http://jsfiddle.net/asgallant/jNVzF/ > > On Thursday, August 23, 2012 11:51:06 AM UTC-4, Lionel Garnier wrote: >> >> Hello again >> >> I am moving forward but I am facing a new issue... >> On my page I have a ChartRangeFilter and I want to modify the range when >> clicking on a button (button id is "ChangeRange"). >> >> I am using the following code: >> >> [...] >> >> var chartselect = new >> google.visualization.ChartRangeFilter(document.getElementById('chartselect')); >> chartselect.draw(data, options); >> [...] >> >> document.getElementById('ChangeRange').onclick = function(){ >> chartselect.setState({'range': {'start': 3, 'end': 5}}); >> chartselect.draw(); >> }; >> >> I made some tests and the function is triggered when clicking the button. >> But unfortunately, the range is not moving..! >> I checked and when using the getState() in the same function it works, I >> can retrieve the selected start and end. But I don't really understand how >> to use the setState(). >> >> => Do you know what is wrong in my piece of code? >> >> Thanks for your feed back and remarks :) >> > -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
