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 :)