I am seeking help. Here is my datatable setup: var grouped_data = google.visualization.data.group( proxyDataTable, [yearIndex], [ {'column': sschIndex, 'aggregation': google.visualization.data.sum, 'type':'number'}, {'column': enrollmentsIndex, 'aggregation': google.visualization.data. sum, 'type':'number'}, {'column': crnIndex, 'aggregation': google.visualization.data.count, 'type':'number'} ] );
Now I am creating a view: var view = new google.visualization.DataView(grouped_data); Then I draw the view: view.setColumns([[0,1],[0,1],[0,1]]); chart0.setDataTable(view); chart0.draw(); My issue is with setColumns(). There are 3 columns being displayed. I thought I would be able to use this code: view.setColumns([1,2]); To display only columns 1 and 2 and not show column 3. My assumption is that [1,2,3] would show all the columns, but that does not work either. I am not sure where to go from here I have tried setColumns with many different arrays, but I am just guessing at this point. Can anyone help determine how I could hide a column using setColumns? I attached a screenshot of what my chart looks like. Thanks in advance for any help!! -- 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 google-visualization-api+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/google-visualization-api/9a0849b2-e015-411c-acec-6e4f02addff3n%40googlegroups.com.