Trying to filter out a couple of data points for the first chart in a
dashboard of many charts.
Filtering data works fine for all the other charts except the first one. I
think because its the first one I have to do something different. Here is
the relevant code for what I'm doing now:
var dashboard = new
google.visualization.Dashboard(document.getElementById('chart_div1')).bind([categoryPicker1],[Chart1,Chart4]).draw(data1);
google.visualization.events.addListener(Chart1, 'ready', function () {
var dt = Chart1.getDataTable();
var filterView1 = new google.visualization.DataView(dt);
filterView1.setRows(dt.getFilteredRows([{'column': 3, 'value':
'City/Town/Place*'}]));
var view1 = new google.visualization.DataView(filterView1);
view1.setRows(filterView1.getSortedRows(36));
Chart1.setDataTable(view1);
Chart1.draw();
This causes an error, "too much recursion":
too much recursion×
too much recursion×
too much recursion×
too much recursion×
- See more at:
http://towncharts.com/testing/Abanda-CDP-AL-Demographics-data.html#sthash.TMEdcoyp.dpuf
The actual page where this is done is:
http://towncharts.com/testing/Abanda-CDP-AL-Demographics-data.html
Any pointers would be greatly appreciated.
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.