Hello,
If you drill down through Goal 1, Success Measure 1, you can see one of the charts. If you click on any of the bars in the chart, it will open up a new window with supporting detail. This works great on desktop/laptop environments, but on an iPhone, the Select event is not firing...it just highlights the bar and the pop up label displays. Am I doing something wrong? Is there a different coding method needed to make it work on iPhones? My code snippet is below:
chrt = new google.visualization.ColumnChart(document.getElementById('divFA1SM1'));
function selectHandler() {
var selectedItem = chrt.getSelection()[0];
if (selectedItem) {
var topping = data.getValue(selectedItem.row, 0);
switch (topping) {
case 'Elementary':
window.open('FA1SM1.aspx?schoolLevel=1', 'SubReport', 'width=625,height=750');
break;
case 'Middle':
window.open('FA1SM1.aspx?schoolLevel=2', 'SubReport', 'width=625,height=750');
break;
case 'High':
window.open('FA1SM1.aspx?schoolLevel=3', 'SubReport', 'width=625,height=750');
break;
}
}
}
google.visualization.events.addListener(chrt, 'select', selectHandler);
chrt.draw(dview, options);