Nick,
It may not be clear enough from the documentation, but the ChartWrapper's
view property is not for specifying a DataView, but for a view spec that is
similar to what a DataView might use. E.g., you can specify view: {
columns: [0, 2, 4] }. For details, see the drawChart function at
https://developers.google.com/chart/interactive/docs/reference#google.visualization.drawchart
On Mon, Jan 18, 2016 at 1:37 PM, <[email protected]> wrote:
> Does chartWrapper work with dataView?
>
> In other words, I have
>
> var view = new google.visualization.DataView(data);
> view.setRows(view.getFilteredRows([{column: 3, value: 'some category'}]));
>
> var chart = new google.visualization.ChartWrapper({
> chartType: 'ScatterChart',
> containerId: 'chart_div',
> dataTable: data,
> view: view,
> });
>
> chart.draw();
>
> ...but the 'view' doesn't have any effect on the data drawn in the chart -
> all the data is drawn. Am I doing something wrong or do I have to use
> chart.draw(view,options)?
>
> Thank you!
>
> --
> 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
> https://groups.google.com/group/google-visualization-api.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/3bed9032-bfcc-44ff-a817-65ebfe76424e%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/3bed9032-bfcc-44ff-a817-65ebfe76424e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
[email protected] <[email protected]> 5CC, Cambridge MA
--
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJOTyBjbk%2Bpxsjv_TbhZ9mNtw99LHnOy623781%2BD-JgyBw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.