Hello, I want to use the ControlWrapper and a SelectHandler function. The two functions are working: I can "zoom in the chart" and when I select the a point of the chart, the "alert" message is displayed. But, when I "zoom in" the chart, the data which is coming from the getValue is modified... I don't know if what i'm saying is clear ? If I select the data at the left of the part displayed after a "zoom", the data displayed is always 0... Why ? It should be the data displayed on the X axe... It's like if the datas are "remapped". How can I change this? Here's my code: var dash = new google.visualization.Dashboard(document.getElementById('dashboard<?PHP echo $a; ?>'));
var control = new google.visualization.ControlWrapper({ controlType: 'ChartRangeFilter', containerId: 'control_div<?PHP echo $a; ?>', options: { filterColumnIndex: 0, ui: { chartOptions: { height: 50, width: '100%', chartArea: { width: '80%' } }, chartView: { columns: [0, 1] } } } }); var chart = new google.visualization.ChartWrapper({ chartType: 'LineChart', containerId: 'chart_div' }); function setOptions (wrapper) { // sets the options on the chart wrapper so that it draws correctly wrapper.setOption('height', 500); wrapper.setOption('width', '100%'); wrapper.setOption('chartArea.width', '80%'); wrapper.setOption('chartArea.height', '95%'); // the chart editor automatically enables animations, which doesn't look right with the ChartRangeFilter wrapper.setOption('animation.duration', 0); } setOptions(chart); dash.bind([control], [chart]); dash.draw(data); google.visualization.events.addListener(chart , 'ready', function(){ google.visualization.events.addListener(chart ,'select', tableSelectHandler); }); function tableSelectHandler(){ var selection = chart.getChart().getSelection(); alert(data.getValue(selection[0].row,0)); } Thank you!!! -- You received this message because you are subscribed to the Google Groups "Google Chart API" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-chart-api+unsubscr...@googlegroups.com. To post to this group, send email to google-chart-api@googlegroups.com. Visit this group at https://groups.google.com/group/google-chart-api. For more options, visit https://groups.google.com/d/optout.