Set the "view" parameter of the ScatterChart's ChartWrapper object.  It 
takes a "columns" parameter, which is an array of columns (exactly like the 
DataView#setColumns method):

var myChart = new google.visualization.ChartWrapper({
    // set chartType, containerId, options, etc,
    view: {
        columns: [0, 1, 2, 3] // use columns 0-3 for this chart
    }
});

On Wednesday, December 11, 2013 2:45:14 AM UTC-5, Jeff Mackewicz wrote:
>
> I'm trying to use a control (e.g. category filter) on a ScatterChart. 
>  This appears to work if the category is a value that is plotted on the 
> ScatterChart, but what if I have additional columns of data that can't be 
> plotted (e.g. they are string values), but that I want to use as a category 
> filter.
>
> I've tried setting a view of the data that only includes the numeric data 
> to be plotted.  This makes the ScatterChart work correctly, but then the 
> control doesn't have access to the data to do the filtering.
>
> Is there a way to explicitly tell the ScatterChart what columns to plot, 
> but still retain the other columns so I can use them for filtering?
>
> This seems to work fine for PieCharts.  They appear to simply ignore extra 
> columns.
>

-- 
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/groups/opt_out.

Reply via email to