Essentially, the #setView method takes an object as a parameter. The
object can have either or both of 'rows' and 'columns' properties. Each
property is an array of row or column indices to include in the view, ie:
wrapper1.setView({columns:[0, 1, 2]}); // use the first three DataTable
columns
wrapper2.setView({rows: [0, 1, 2, 5]}); // use the first, second, third,
and sixth rows
I have some live examples here: http://jsfiddle.net/asgallant/gzmn3/
On Thursday, May 31, 2012 2:00:29 PM UTC-4, leglera wrote:
>
> I am actually struggling with the same thing - I cannot get a data view to
> work with a source url.
>
> The links asgallant posted do not help - does anyone have an example of a
> sourceurl that feeds a data view?
>
> thanks,
>
> ABL
>
> On Thursday, September 22, 2011 6:52:36 AM UTC-4, pb wrote:
>>
>> Hi,
>>
>> I would like to filter data that is coming in from a sourceURL, i
>> don't seem to understand the concept of needing to use setView() to
>> bring imported data into a dataView. Can anyone give a clear and
>> simple example of how this is done please? Amazed that this is shown/
>> written anywhere clear enough in the docs.
>>
>> Help is always appreciated in advance.
>>
>> pb
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/ijwCXTKjvrAJ.
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.