Ok - I think the documentation is confusing.  At least, I'm confused.

The notation to use with the ChartWrapper is:

  array_of_columns_desired = [...]
  wrapper.setView({columns:array_of_columns_desired}]

Passing ChartWrapper.setView() a DataView object, even *without* the
toJSON, doesn't seem to work.  That's what I was trying to do, example
here:  http://jsfiddle.net/rYRD4/4/

I had mistakenly assumed you could pass a DataView object to setView.
But that appears to be incorrect. I'll use the notation you had going
forward.

thanks,








On Jun 21, 1:03 pm, Riccardo Govoni <[email protected]> wrote:
> Sorry, I'm not following you.
>
> The first examplehttp://jsfiddle.net/rYRD4/1/shows only one column (column
> 0) because the view going through toJSON() which discards the generated
> column.
> The second examplehttp://jsfiddle.net/rYRD4/2/shows 2 columns (including a
> generated one) because the view is set explicitly.
>
> If you set a DataView as the dataTable parameter for the chartwrapper it
> will obviously work because the filtering and column generation is done
> implicitly by the DataView the chartwrapper receives rather than explicitly
> by the ChartWrapper (if you were to use setView instead).
>
> /R.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to